Re: Force NSToolbar to revalidate NOW?
Re: Force NSToolbar to revalidate NOW?
- Subject: Re: Force NSToolbar to revalidate NOW?
- From: Jim Correia <email@hidden>
- Date: Mon, 8 Sep 2003 14:14:50 -0400
On Monday, September 8, 2003, at 01:38 PM, email@hidden wrote:
Is there any way to force the items to re-validate (and re-display)
"now"?
[toolbar validateVisibleItems];
I don't know if this will work (I haven't tried it.)
The docs say:
<
http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/ObjC_classic/Classes/NSToolbar.html#//apple_ref/doc/uid/
20000681/BAJHEIBI>
Called on window updates with the purpose of validating each of the
visible items. You use this method by overriding it in a subclass; you
should not invoke this method. The toolbar calls this method to
iterate
through the list of visible items, sending each a validate message.
Override it and call super if you want to know when this happens.
The header comment reads slightly differently
/*
Typically you should not invoke this method. This method is called
on window updates with the purpose of validating each of the visible
items. The toolbar will iterate through the list of visible items,
sending each a -validate message.
*/
Jim
_______________________________________________
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.