Re: Validation of a Custom View NSToolbarItem
Re: Validation of a Custom View NSToolbarItem
- Subject: Re: Validation of a Custom View NSToolbarItem
- From: Ashley Clark <email@hidden>
- Date: Thu, 18 Dec 2008 02:33:49 -0600
On Dec 17, 2008, at 8:20 AM, Carmen Cerino Jr. wrote:
I understand I need to have a NSToolbarItem subclass and override its
validate method, but who is responsible for calling it? Will NSToolbar
call it during its validation routine or do I need to come up with my
own validation routine?
NSToolbar will call validate on the item during its normal validation
routine like it does on all other toolbar items where you haven't
disable automatic validation. If you have disabled automatic
validation with setAutovalidates:NO, because your validation routine
is expensive, then you'll have to manually call validate on your
toolbar items whenever it's appropriate.
Ashley
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden