Re: NSToolBar Implementation
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