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

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


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

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.

Does anyone have an idea what might be wrong?

This is with Xcode 4.6.3, OSX 10.7 base SDK, running on Mountain Lion.

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 not getting called, other delegate methods are
      • From: Markus Spoettl <email@hidden>
  • Prev by Date: [NSPointerArray copy] problem
  • Next by Date: Re: NSToolbar delegate -toolbarAllowedItemIdentifiers not getting called, other delegate methods are
  • Previous by thread: Re: [NSPointerArray copy] problem
  • Next by thread: Re: NSToolbar delegate -toolbarAllowedItemIdentifiers not getting called, other delegate methods are
  • Index(es):
    • Date
    • Thread