Re: button text won't disable/gray out
Re: button text won't disable/gray out
- Subject: Re: button text won't disable/gray out
- From: "I. Savant" <email@hidden>
- Date: Tue, 19 Jun 2007 06:53:43 -0400
On Jun 18, 2007, at 8:41 PM, William Zumwalt wrote:
I have a ToolbarDelegateCategory with the below code, but the problem
is that my images or the text below them doesn't gray out as if it
were not enabled. The icons and text appear from this code, but no
disabling. Even if I put the setEnabled: code in my controllers
awakeFromNib:, I still get the same results.
The documentation for NSToolbarItem's -setEnabled: method is as
follows:
"For a custom view item, this method calls setEnabled: on the view if
it responds."
I don't believe this is what you want. Look up the
<NSToolbarItemValidation> informal protocol. Specifically, -
validateToolbarItem: ...
--
I.S.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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