• 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: notification of change?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSToolbar: notification of change?


  • Subject: Re: NSToolbar: notification of change?
  • From: Graham Cox <email@hidden>
  • Date: Tue, 2 Jun 2009 12:12:34 +1000


On 02/06/2009, at 8:53 AM, David Reitter wrote:

Having subclassed NSToolbar, I am now trying to get a notification of changes done by the user using the customization palette.
This works fine for the removal of items (toolbarDidRemoveItem:), but I can't see a way to get notified of added/moved items after the fact.
The only notification I can get is toolbarWillAddItem:, but that's obviously before the addition, which is not very helpful.


I have tried implementing insertItemWithItemIdentifier: and also setConfigurationFromDictionary:, but it seems that the palette doesn't go through these.

Short of regularly monitoring the tool bar for possible changes, I don't know what to do...

Thanks for your suggestions!


It might be useful if you could explain why you need to do this. The design of toolbars is intended to avoid you needing this, since the content and layout of toolbars is something that the user is in charge of. Normally, where an item is sitting in the toolbar is of little interest to the app.

--Graham

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >NSToolbar: notification of change? (From: David Reitter <email@hidden>)

  • Prev by Date: Re: Dynamically getting the type of ivars
  • Next by Date: Re: 64-bit, 10.5/10.4, SDK build settings
  • Previous by thread: Re: NSToolbar: notification of change?
  • Next by thread: Garbage Collection Crash using NSImage
  • Index(es):
    • Date
    • Thread