• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Validation of a Custom View NSToolbarItem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Validation of a Custom View NSToolbarItem (From: "Carmen Cerino Jr." <email@hidden>)

  • Prev by Date: Re: UNIX signals
  • Next by Date: Re: Validation of a Custom View NSToolbarItem
  • Previous by thread: Validation of a Custom View NSToolbarItem
  • Next by thread: Re: Validation of a Custom View NSToolbarItem
  • Index(es):
    • Date
    • Thread