• 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: Toolbar code in separate Controller?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Toolbar code in separate Controller?


  • Subject: Re: Toolbar code in separate Controller?
  • From: "John Love" <email@hidden>
  • Date: Mon, 7 Jul 2008 10:13:15 -0400

Uli -

To enable/disable the toolbar items, Cocoa uses the
NSUserInterfaceValidation protocol, and asks each responder in the responder
chain, beginning at the first responder. Have you inserted your toolbar
controller in the responder chain so it actually gets asked whether these
methods should be enabled?

Initially, my ToolbarController was sub to NSObject as was the case for
Apple's SimpleToolbar, so I changed the super class of my ToolbarController
to NSControl.  Since NSControl is a NSView, shouldn't the toolbar
automatically be in the Responder chain, just as any NSView in the window?

I read somewhere that NSView calls [self setRefusesFirstResponder:FALSE] ?

John
_______________________________________________

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: Toolbar code in separate Controller?
      • From: Graham Cox <email@hidden>
References: 
 >Toolbar code in separate Controller? (From: "John Love" <email@hidden>)
 >Re: Toolbar code in separate Controller? (From: Uli Kusterer <email@hidden>)

  • Prev by Date: archive only what changed?
  • Next by Date: Re: archive only what changed?
  • Previous by thread: Re: Toolbar code in separate Controller?
  • Next by thread: Re: Toolbar code in separate Controller?
  • Index(es):
    • Date
    • Thread