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 protected])
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]