Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSToolBar Implementation



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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.