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

Validating a NSSegmentedControl in a toolbar


  • Subject: Validating a NSSegmentedControl in a toolbar
  • From: Graham Cox <email@hidden>
  • Date: Fri, 5 Jun 2009 11:10:06 +1000

I'm having problems validating an NSSegmentedControl in a toolbar.

I have tried implementing both -validateUserInterfaceItem: and - validateToolbarItem: but neither is called for the segmented control. They are called for other simple buttons in the toolbar.

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? I've read all the toolbar and validation documentation I can find but I'm none the wiser - nothing so far stands out as the obvious right way to proceed.

My toolbar is currently wholly set up in IB, with no code in my app at all.

--Graham


_______________________________________________

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


  • Follow-Ups:
    • Re: Validating a NSSegmentedControl in a toolbar
      • From: Nick Zitzmann <email@hidden>
    • Re: Validating a NSSegmentedControl in a toolbar
      • From: Joar Wingfors <email@hidden>
  • Prev by Date: Re: Should touch events related to a given view be implemented in the view or the view controller?
  • Next by Date: Re: No Title Bar on NSPanel
  • Previous by thread: Re: Help Book: "Ask a Question" Fails [solved]
  • Next by thread: Re: Validating a NSSegmentedControl in a toolbar
  • Index(es):
    • Date
    • Thread