X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=Categories%2FNSMenu%2BRepresentedObjectAccessors.h;h=8514fcb056f5b88f95cb8abdfc6cb8a34b6447ec;hp=ecb28a67834f5ae9441553fd08b5ad1deb0c5ffc;hb=71c958acabb545ef231ad100ef6410834cac3c23;hpb=0064c1fbff36795885a9724081af2a17d83c20a3 diff --git a/Categories/NSMenu+RepresentedObjectAccessors.h b/Categories/NSMenu+RepresentedObjectAccessors.h index ecb28a6..8514fcb 100644 --- a/Categories/NSMenu+RepresentedObjectAccessors.h +++ b/Categories/NSMenu+RepresentedObjectAccessors.h @@ -12,16 +12,10 @@ // Helpers for using represented objects in menu items. - (NSMenuItem *)itemWithRepresentedObject:(id)object; +- (NSMenuItem *)itemWithIdenticalRepresentedObject:(id)object; // Returns the first menu item in the receiver that has a given // represented object. -- (void)removeItemWithRepresentedObject:(id)object; - // Removes the first menu item representing the given object in the - // receiver. - // - // After it removes the menu item, this method posts an - // NSMenuDidRemoveItemNotification. - - (NSMenuItem *)lastItem; // Return the last menu item in the receiver, or nil if the menu // has no items. @@ -37,10 +31,12 @@ @interface NSPopUpButton (RepresentedObjectAccessors) - (NSMenuItem *)itemWithRepresentedObject:(id)object; +- (NSMenuItem *)itemWithIdenticalRepresentedObject:(id)object; // Returns the first item in the receiver's menu that has a given // represented object. - (void)selectItemWithRepresentedObject:(id)object; +- (void)selectItemWithIdenticalRepresentedObject:(id)object; // Selects the first item in the receiver's menu that has a give // represented object.