• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSToolbar Delegates not implemented?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSToolbar Delegates not implemented? (From: Rick Langschultz <email@hidden>)

  • Prev by Date: Re: Another user defaults question
  • Next by Date: Re: Drag between 2 NSTableView?
  • Previous by thread: NSToolbar Delegates not implemented?
  • Next by thread: Contextual Menu doesn't respond to control+click
  • Index(es):
    • Date
    • Thread