projects
/
enjoyable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Stack errors.
[enjoyable.git]
/
Categories
/
NSMenu+RepresentedObjectAccessors.h
diff --git
a/Categories/NSMenu+RepresentedObjectAccessors.h
b/Categories/NSMenu+RepresentedObjectAccessors.h
index ecb28a67834f5ae9441553fd08b5ad1deb0c5ffc..8514fcb056f5b88f95cb8abdfc6cb8a34b6447ec 100644
(file)
--- 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;
// 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.
// 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.
- (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;
@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;
// 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.
// Selects the first item in the receiver's menu that has a give
// represented object.