Skip navigation.
 
mlRe: Simple bindings problem
FROM : Martin Linklater
DATE : Sat Jan 05 23:02:59 2008

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.

Related mailsAuthorDate
mlSimple bindings problem Martin Linklater Jan 5, 10:58
mlRe: Simple bindings problem Martin Linklater Jan 5, 12:46
mlRe: Simple bindings problem Martin Linklater Jan 5, 23:02
mlRe: Simple bindings problem mmalc crawford Jan 6, 01:24
mlRe: Simple bindings problem Martin Linklater Jan 6, 09:22
mlRe: Simple bindings problem mmalc crawford Jan 6, 10:58
mlRe: Simple bindings problem Martin Linklater Jan 6, 14:13