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

Re: NSSegmentedControl in a toolbar


  • Subject: Re: NSSegmentedControl in a toolbar
  • From: Graham Cox <email@hidden>
  • Date: Wed, 5 May 2010 10:46:45 +1000

On 05/05/2010, at 9:54 AM, Flavio Donadio wrote:

> Finally, in Interface Builder, I inserted an NSSegmentedControl in my toolbar and bound it to the outlet  in the App Delegate instance in the NIB.
>
> It doesn't work. My segmented control doesn't get the images or labels. Should it be done this way?


Either create the control in code or create it in IB. Don't do both.

I'm not sure what advantage the code approach might have here - I haven't found a need to use toolbar groups myself (though presumably they solve a problem I haven't needed to solve so far), but for a segmented control just drop it in and set it up in IB, works fine, no code required (except an action method to do something with it, and maybe an outlet if you need to set it up at awake time).

--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: NSSegmentedControl in a toolbar
      • From: Flavio Donadio <email@hidden>
    • Re: NSSegmentedControl in a toolbar
      • From: Seth Willits <email@hidden>
References: 
 >NSSegmentedControl in a toolbar (From: Flavio Donadio <email@hidden>)

  • Prev by Date: NSSegmentedControl in a toolbar
  • Next by Date: Re: NSSegmentedControl in a toolbar
  • Previous by thread: NSSegmentedControl in a toolbar
  • Next by thread: Re: NSSegmentedControl in a toolbar
  • Index(es):
    • Date
    • Thread