• 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: 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.


  • Follow-Ups:
    • Re: NSToolBar Implementation
      • From: "David P. Henderson" <email@hidden>
  • Prev by Date: RE: [Help] How to get instance of instantiated Controller in nib from Controller in another nib? (Java)
  • Next by Date: A bit stumped....
  • Previous by thread: Re: Double-clicking NSOutlineView
  • Next by thread: Re: NSToolBar Implementation
  • Index(es):
    • Date
    • Thread