Force NSToolbar to revalidate NOW?
Force NSToolbar to revalidate NOW?
- Subject: Force NSToolbar to revalidate NOW?
- From: email@hidden
- Date: Mon, 8 Sep 2003 10:38:27 -0700
I have some items in NSToolbar that are initially grayed out, but then
become valid after some delay. (I am using validateToolbarItem in the
window's delegate to control this.)
Unfortunately, the items *stay* gray until I pass the mouse over the
NSToolbar, which causes an update. So until the user moves the mouse
in the right place, it looks like the items remain deactivated.
Is there any way to force the items to re-validate (and re-display)
"now"? I have tried calling -validate on the items; I have tried
-display or -update on the window itself; I have tried making the
toolbar invisible and then visible again, etc.
Can anybody think of a workaround to force the toolbar to display
itself with its new enabled state immediately?
--
Dan Wood
Karelia Software, LLC
email@hidden
http://www.karelia.com/
Watson for Mac OS X:
http://www.karelia.com/watson/
_______________________________________________
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.