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



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.

Michael

> From: email@hidden
> Reply-To: email@hidden
> Date: Thu, 19 Jul 2001 14:22:43 -0700 (PDT)
> To: email@hidden
> Subject: cocoa-dev digest, Vol 1 #300 - 18 msgs
>
> Hi Brave Cocoa dev folk! I'm attempting to implement an NSToolbar which I
> began with the provided example. My problem is this: My toolbar items are
> showing up in the toolbar, yet they are all disabled. I'm calling the
> setEnabled method for each toolbar item but they are still dimmed out. I'm
> sure I'm missing some detail. Any ideas, feedback, help, would be much
> appreciated.




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.