Re: NSToolbarItem validation
Re: NSToolbarItem validation
- Subject: Re: NSToolbarItem validation
- From: Tommy Nordgren <email@hidden>
- Date: Tue, 14 Mar 2006 18:17:17 +0100
On 14 mar 2006, at 17.56, Chris Miner wrote:
Am 14.03.2006 um 17:10 schrieb Tommy Nordgren:
From the NSView Docs (a base class of NSButton)
Whenever the data or state used for drawing a view object changes,
the view should be sent a setNeedsDisplay:
I see. So are you suggesting I tell the NSToolbarItem item's view
that it should be re displayed at the end of my validation method?
Something like:
if ([[self view] isKindOfClass:[NSControl class]])
{
NSControl *control = [self view];
[self setEnabled:[control isEnabled]];
[[control superview] setNeedsDisplay:YES];
use [control setNeedsDisplay:YES]
(a control IS a NSView subclass)
}
That works, but I guess I thought that would be take care of by the
toolbaritem.
-------------------------------------
This sig is dedicated to the advancement of Nuclear Power
Tommy Nordgren
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden