Validating custom NSToolbarItems
Validating custom NSToolbarItems
- Subject: Validating custom NSToolbarItems
- From: Glen Simmons <email@hidden>
- Date: Wed, 6 Oct 2004 18:16:13 -0500
OK, I've gone to the (annoying) trouble of subclassing NSToolbarItem
just so I can actually validate my -setView: based item. Now I have
another issue: following the directions in The Fine Manual and calling
-setEnabled: from my override of -validate doesn't completely work -
the contents of my view get enabled / disabled properly, but the label
doesn't get re-enabled until something causes another toolbar
validation. Is there some further step I need to take? For now I'm
working around it by calling -validateVisibleItems on the toolbar in
the cases where I'm going from disabled to enabled, but this seems like
a hack. Thoughts?
Thanks,
Glen Simmons
_______________________________________________
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