Deactivating toolbar
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.