model key path and properties
model key path and properties
- Subject: model key path and properties
- From: Torsten Curdt <email@hidden>
- Date: Fri, 15 Jul 2011 00:29:34 +0200
Xcode4.0.2 on 10.6.8:
I have a NSArrayController and I add items to that controller. In the
nib I have bound a NSPopUpButton's "Content" to that
NSArrayController's arrangedObjects. Now with an empty model key path
I see the object's description in the popup. All good and expected.
Now these items the NSArrayController manages have a "name" property.
Accessing the name like this works just fine:
NSLog(@"name: %@", [[[self.myArrayController arrangedObjects]
objectAtIndex:0] name]);
Now I would think I just need to change the model key path of the
"Content" binding to be "name" but IB gives me the exclamation mark
and says "no completion found".
I am confused. Shouldn't this just work like that? ...or what did I miss?
cheers,
Torsten
_______________________________________________
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