• 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: Validating a NSSegmentedControl in a toolbar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Validating a NSSegmentedControl in a toolbar


  • Subject: Re: Validating a NSSegmentedControl in a toolbar
  • From: Nick Zitzmann <email@hidden>
  • Date: Thu, 4 Jun 2009 20:08:48 -0600


On Jun 4, 2009, at 7:10 PM, Graham Cox wrote:

There's a note in the documentation for -validateToolbarItem: that "NSToolbar only calls this method for image items", which might explain it. So what do I need to do to make this work for the segmented control?


In addition to what Joar suggested, you can also subclass NSToolbarItem, use the subclass for the view item, and override - validate and put your validation code there. I've done this before, and it works fine, even for view toolbar items.

Nick Zitzmann
<http://www.chronosnet.com/>



_______________________________________________

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: 
 >Validating a NSSegmentedControl in a toolbar (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: No Title Bar on NSPanel
  • Next by Date: Re: No Title Bar on NSPanel
  • Previous by thread: Re: Validating a NSSegmentedControl in a toolbar
  • Next by thread: bitmapImageRepForCachingDisplayInRect and focus rings?
  • Index(es):
    • Date
    • Thread