On 2/7/14 10:31 PM, Markus Spoettl wrote:
Hi,
I have a strange problem with a toolbar that is configured in IB which I need
to adjust programmatically. It has a delegate set (to the window controller) but
for some reason
- (NSArray *)toolbarAllowedItemIdentifiers:(NSToolbar*)toolbar
is never getting called. Other delegate methods such as
- (NSArray *)toolbarDefaultItemIdentifiers:(NSToolbar *)toolbar
are getting called. I need to adjust (restrict) the allowed items under certain
circumstances and there's no other way to do that.
Of course I spoke too soon. It is called, but it doesn't seem to change what
NSToolbar is doing. It is called when I open the toolbar customization, but even
though I return a restricted set of identifiers, it still presents all items
that were set up in IB, not the reduced set of items as it's supposed to present.
So the question is: How do I remove an item with a given identifier in such a
way that it does not appear in the customization, neither is single item nor as
part of the default toolbar configuration.
Thanks for any pointers!
Regards
Markus
--
__________________________________________
Markus Spoettl
_______________________________________________
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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com