• 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
NSCombobox binding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSCombobox binding


  • Subject: NSCombobox binding
  • From: Olivier Destrebecq <email@hidden>
  • Date: Mon, 26 Jul 2004 14:53:21 -0400

I read the documentation on apple web site and still can't get it to work.
Here is the description of the content binding from a combobox from apple website
" content
An NSArrayController instance that provides the content of the NSComboBox.
Unless contentValues is also bound, the titles of the items in the NSComboBox are derived by invoking description for each of the content objects."

If i understand this i just need to get this binding to point to an array controller and put arrangedObject for the controllerKey
Then implement the description method in the object contained by the array.

Unfortunately it seem like it manage to get a hold of the object in the array, but it never send them the description message.

The contentValue binding is not bound

if i bound the contentValue then the value in the drop menu are displayed correctly but it still pass the string value for the selected object and not the actual object.

Any help appreciated
Olivier Destrebecq
http://www-personal.si.umich.edu/~olivier/portfolio/Resume.html
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: NSCombobox binding
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Build objects at runtime
  • Next by Date: Re: Build objects at runtime
  • Previous by thread: Re: Build objects at runtime
  • Next by thread: Re: NSCombobox binding
  • Index(es):
    • Date
    • Thread