Re: Toolbar code in separate Controller?
Re: Toolbar code in separate Controller?
- Subject: Re: Toolbar code in separate Controller?
- From: Uli Kusterer <email@hidden>
- Date: Sat, 5 Jul 2008 21:31:31 +0200
On 05.07.2008, at 21:05, John Love wrote:
Apple's SimpleToolbar code *is all* their MyDocument.m. My app
would like
to place the toolbar-specific code *in a separate Controller*, say
"ToolbarController". This transfer does work to a limited extent,
that is,
the toolbar does in fact appear at the top of the window, as it
should.
However, *what does not work* is the enabling/disabling based on the
specified target .. all toolbar items are disabled. Details are as
follows:
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?
Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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