Re: Toolbar code in separate Controller?
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