• 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 delegate -toolbarAllowedItemIdentifiers not getting called, other delegate methods are
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSToolbar delegate -toolbarAllowedItemIdentifiers not getting called, other delegate methods are


  • Subject: Re: NSToolbar delegate -toolbarAllowedItemIdentifiers not getting called, other delegate methods are
  • From: Markus Spoettl <email@hidden>
  • Date: Fri, 07 Feb 2014 22:43:49 +0100

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 (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


  • Follow-Ups:
    • Re: NSToolbar delegate -toolbarAllowedItemIdentifiers:
      • From: Jerry Krinock <email@hidden>
References: 
 >NSToolbar delegate -toolbarAllowedItemIdentifiers not getting called, other delegate methods are (From: Markus Spoettl <email@hidden>)

  • Prev by Date: NSToolbar delegate -toolbarAllowedItemIdentifiers not getting called, other delegate methods are
  • Next by Date: Core Data : Synchronizing objects with SQLite file
  • Previous by thread: NSToolbar delegate -toolbarAllowedItemIdentifiers not getting called, other delegate methods are
  • Next by thread: Re: NSToolbar delegate -toolbarAllowedItemIdentifiers:
  • Index(es):
    • Date
    • Thread