• 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
Deactivating toolbar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Deactivating toolbar


  • Subject: Deactivating toolbar
  • From: Andrew Merenbach <email@hidden>
  • Date: Thu, 29 Aug 2002 19:54:42 -0700

I would like my application's toolbar to disable itself and turn gray when my application is no longer the active one, much like the Finder's toolbar works. I've tried putting this code into validateToolbarItem:

if (![NSApp isActive]) {
return NO;
}

But when my application is not in front, validateToolbarItem: is only called when the mouse moves over the toolbar. Additionally, this does not disable the overflow menu, if there is one.

Is there an easy way to do this, or is it Finder-specific? (I've noticed that Project Builder, for instance, does not display this behavior.)

Take care,
Andrew Merenbach
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Deactivating toolbar
      • From: j o a r <email@hidden>
  • Prev by Date: Some help needed...
  • Next by Date: NSTextView Weirdness
  • Previous by thread: Re: Some help needed...
  • Next by thread: Re: Deactivating toolbar
  • Index(es):
    • Date
    • Thread