• 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: NSToolBar Implementation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSToolBar Implementation


  • Subject: Re: NSToolBar Implementation
  • From: "David P. Henderson" <email@hidden>
  • Date: Fri, 20 Jul 2001 10:47:10 -0400

On Friday, July 20, 2001, at 08:52 , Michael Dupuis wrote:

> You need to implement validateToolbarItem, which works like
> validateMenuItem. You can test the name of the item and return true or
> false
> from this method depending on what state you want to button to have. If
> you
> just return true from this method, then all buttons will be enabled.
>
As a point of information, you should always validate on an identifying
trait which will not be invalidated by localization. Good attributes to
check are the item's action method, tag or identifier. Poor attributes
are an item's name, label or title all of which should generally be
localizable.

Dave
--
Chaos Assembly Werks
"Imagination is more important than knowledge."
- Albert Einstein


References: 
 >Re: NSToolBar Implementation (From: Michael Dupuis <email@hidden>)

  • Prev by Date: A bit stumped....
  • Next by Date: Re: A bit stumped....
  • Previous by thread: Re: NSToolBar Implementation
  • Next by thread: UserDefaults and domain names
  • Index(es):
    • Date
    • Thread