Re: Force NSToolbar to revalidate NOW?
Re: Force NSToolbar to revalidate NOW?
- Subject: Re: Force NSToolbar to revalidate NOW?
- From: Chuck Soper <email@hidden>
- Date: Mon, 8 Sep 2003 11:23:23 -0700
A few months ago I had some similar issues with toolbar items (I
can't remember the specifics). You might need to override the
validate method according to notes in NSToolbarItem.h. I'm interested
to find out if there is a good solution to your issue.
Chuck
At 10:38 AM -0700 9/8/03, email@hidden wrote:
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.
_______________________________________________
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.