Re: toolbar:itemForItemIdentifier:willBeInsertedIntoToolbar: and nibs
Re: toolbar:itemForItemIdentifier:willBeInsertedIntoToolbar: and nibs
- Subject: Re: toolbar:itemForItemIdentifier:willBeInsertedIntoToolbar: and nibs
- From: Keary Suska <email@hidden>
- Date: Wed, 12 Jun 2013 17:14:40 -0600
On Jun 12, 2013, at 3:53 PM, David Catmull wrote:
> The documentation for toolbar:itemForItemIdentifier:willBeInsertedIntoToolbar: says that it's optional for nib toolbars, but it can still be used to "augment functionality". My experience is that it actually doesn't get called at all in the nib case, which isn't good because I want to know if my items are going into the toolbar or the customize palette. All my delegate is getting is toolbarWillAddItem:, which isn't enough.
>
> Are the docs wrong, or am I doing it wrong?
The docs do not say how Interface Builder-created toolbars differ from programmatically created ones, but it is logical that the nib-instantiated toolbar does not make a number of the toolbar-creation delegate calls even if a delegate is set as the information it would request is already "known".
Also, I suspect that the docs you cite might be saying that you would subclass NSToolbar and implement that delegate method if you want to intercept it.
HTH,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
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