• 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
NSPopupButton, bindings, and item state
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSPopupButton, bindings, and item state


  • Subject: NSPopupButton, bindings, and item state
  • From: Jonathan Taylor <email@hidden>
  • Date: Fri, 15 Aug 2014 12:23:00 +0100

After being impressed with bindings for an NSTableView, I’m looking at what I can do for a standalone NSPopupButton, in the hope of reducing the amount of glue code I have. The button isn’t just a simple one though, I need to:
- Include separator items
- Disable (grey out) some items
- Select multiple items (it’s configured as a pull-down menu)

It’s not obvious to me that there’s a way of doing any of those things with bindings (though the multiple-selected-items might work somehow through the array controller). Can anyone advise on whether there is any hope for this approach, or do I have to accept that this is more than the bindings are intended to help with?

Thanks for any suggestions
Jonny
_______________________________________________

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: NSPopupButton, bindings, and item state
      • From: Keary Suska <email@hidden>
  • Prev by Date: Re: Stuck in Swift
  • Next by Date: Re: NSPopupButton, bindings, and item state
  • Previous by thread: Re: Quickie about constraints
  • Next by thread: Re: NSPopupButton, bindings, and item state
  • Index(es):
    • Date
    • Thread