Re: NSToolBar Implementation
Re: NSToolBar Implementation
- Subject: Re: NSToolBar Implementation
- From: Michael Dupuis <email@hidden>
- Date: Fri, 20 Jul 2001 08:52:25 -0400
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.