Re: NSToolbarItem validation
Re: NSToolbarItem validation
- Subject: Re: NSToolbarItem validation
- From: Chris Miner <email@hidden>
- Date: Tue, 14 Mar 2006 17:56:11 +0100
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];
}
That works, but I guess I thought that would be take care of by the
toolbaritem.
_______________________________________________
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