I'm building a Preferences window that has a toolbar, in the style of Mail. I need to know if the user clicks on a toolbar item to change the pane. If the current pane has pending changes, I display a sheet asking for action regarding the present changes. I need to do this BEFORE the selected toolbar item is changed. Which means I need to intercept that change. Alas, I haven't been able to zero in on how to do that. I don't see NSToolBar delegate methods that provide such intercept (e.g. -(BOOL)shouldChangeToolbarItem.... or something of the like), nor do I see anything useful that I could override if I subclass the Toolbar instance. So, I must be overlooking something. If anyone can tell me what, I'd be eternally grateful :-) TIA.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to