• 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
Have to subclass NSToolbarItem to be able to disable it?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Have to subclass NSToolbarItem to be able to disable it?


  • Subject: Have to subclass NSToolbarItem to be able to disable it?
  • From: "Guy Umbright" <email@hidden>
  • Date: Wed, 18 Feb 2004 11:03:23 -0600
  • Thread-topic: Have to subclass NSToolbarItem to be able to disable it?

Specifically, I would like to enable/disable a toolbar
item based on the state of the selection in an NSTableView
in the window. I tried using setEnabled to control the
state, but it always get reset to enabled. From what I
can tell, I need to create a subclass of NSToolbarItem
so that I can override validate:, the default of which
always sets enabled?

If so, is it only me that this seems a bit of overkill
for? Wouldn't a delegate method be more appropriate
here?

Guy

(perpetually apologetic about the big disclaimer)



This electronic mail message and any attached files contain information
intended for the exclusive use of the individual or entity to whom it is
addressed and may contain information that is proprietary, privileged,
confidential and/or exempt from disclosure under applicable law. If you are
not the intended recipient, you are hereby notified that any viewing, copying,
disclosure or distribution of this information may be subject to legal
restriction or sanction. Please notify the sender, by electronic mail or
telephone, of any unintended recipients and delete the original message
without making any copies.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Special behavior when double-click NSTableView cell
  • Next by Date: Re: About the mysterious initWithBytes:length:encoding: NSString method
  • Previous by thread: Re: iTunes header column and Rows selection
  • Next by thread: Re: Have to subclass NSToolbarItem to be able to disable it?
  • Index(es):
    • Date
    • Thread