• 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: button text won't disable/gray out
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >button text won't disable/gray out (From: "William Zumwalt" <email@hidden>)

  • Prev by Date: Re: Core Data back-end daemon
  • Next by Date: NSThisDayDesignations replacement
  • Previous by thread: button text won't disable/gray out
  • Next by thread: How to add a custom applescript command to sdef
  • Index(es):
    • Date
    • Thread