• 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: NSComboBox Bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSComboBox Bindings


  • Subject: Re: NSComboBox Bindings
  • From: Walker Argendeli <email@hidden>
  • Date: Thu, 26 Feb 2009 15:26:46 -0500

I bound NSComboBox's value to Item.arrangedObjects.kind, and the console logs this when I try to modify the kind in my app:
*** -[NSCFString managedObjectContext]: unrecognized selector sent to instance 0x19a410


One suggestion I've received is to subclass it.  Any further ideas?

FROM : Jerry Krinock
DATE : Thu Feb 26 14:25:18 2009

On 2009 Feb 25, at 17:08, Walker Argendeli wrote:

> With an NSPopUpButton, you can bind content to Kind.arrangedObjects,
> content values to Kind.arrangedObjects.title, and selected object to
> Item.kind.  I want the functionality of an NSComboBox, however,
> which only has content and content values.  There's no selected
> object.  What could I bind to to get this working?


Possibly the 'value' binding.

Also, add the Cocoa Bindings Reference to your bookmarks:

http://developer.apple.com/documentation/Cocoa/Reference/CocoaBindingsRef/BindingsText/NSComboBox.html#/
/apple_ref/doc/uid/NSComboBox-DontLinkElementID_779
- Walker Argendeli

_______________________________________________

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: NSComboBox Bindings
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: OutlineView with custom TableColumn cell doesn't redisplay when losing focus
  • Next by Date: Re: OutlineView with custom TableColumn cell doesn't redisplay when losing focus
  • Previous by thread: Re: OutlineView with custom TableColumn cell doesn't redisplay when losing focus
  • Next by thread: Re: NSComboBox Bindings
  • Index(es):
    • Date
    • Thread