Re: NSToolbar Delegates not implemented?
Re: NSToolbar Delegates not implemented?
- Subject: Re: NSToolbar Delegates not implemented?
- From: Stephen Deken <email@hidden>
- Date: Thu, 24 Aug 2006 19:40:25 -0500
On Aug 24, 2006, at 7:30 PM, Rick Langschultz wrote:
ERROR: invalid delegate <ToolbarController: 0x360220> (does not
implement all required methods), and so can not be used!
You have to implement the delegate methods outlined in the
documentation:
http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/Classes/NSToolbar_Class/Reference/Reference.html
In short:
- (NSToolbarItem *)toolbar:(NSToolbar *)toolbar itemForItemIdentifier:
(NSString *)itemIdentifier willBeInsertedIntoToolbar:(BOOL)flag
- (NSArray *)toolbarAllowedItemIdentifiers:(NSToolbar *)toolbar
- (NSArray *)toolbarDefaultItemIdentifiers:(NSToolbar *)toolbar
- (void)toolbarDidRemoveItem:(NSNotification *)notification
- (NSArray *)toolbarSelectableItemIdentifiers:(NSToolbar *)toolbar
- (void)toolbarWillAddItem:(NSNotification *)notification
Stephen Deken
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden