• 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: Simple bindings problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple bindings problem


  • Subject: Re: Simple bindings problem
  • From: Martin Linklater <email@hidden>
  • Date: Sat, 5 Jan 2008 22:02:59 +0000

OK. My problem was that I had my NSObjectController's Model Key Path set to 'selection' rather than 'self'. Doh. I can now bind both integers and NSStrings to NSTextFields.

I now have another question... When you call 'add' on an NSArrayController via an action, say by pressing an NSButton on your interface, how do you set the actual value of the inserted object ? I know you can set the class type of the newly created object with the Class Name entry in the array controllers Attributes inspector pane, but is there a way to actually setup the contents of the newly created array entry ?

So in my case when I click 'Add' the array controller creates a new NSString object in my array, but how do I then set the actual value of that NString object ?

Thanks.
_______________________________________________

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: Simple bindings problem
      • From: mmalc crawford <email@hidden>
References: 
 >Simple bindings problem (From: Martin Linklater <email@hidden>)
 >Re: Simple bindings problem (From: Martin Linklater <email@hidden>)

  • Prev by Date: RE: NSMatrix: does it have an delegate method...
  • Next by Date: Re: Assigning Binary Data From Network To Variables
  • Previous by thread: Re: Simple bindings problem
  • Next by thread: Re: Simple bindings problem
  • Index(es):
    • Date
    • Thread