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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com