Re: Simple bindings problem
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