Re: NSObjectController can't observe NSArrayController's selection?
Re: NSObjectController can't observe NSArrayController's selection?
- Subject: Re: NSObjectController can't observe NSArrayController's selection?
- From: Conor <email@hidden>
- Date: Tue, 03 Apr 2007 10:13:37 +0200
>> The NSObjectController is already the selection. The bind should be
>> to key
>> 'name', no path.
>
> I realize that, but in IB the only available keys for a value bound
> to an NSObjectController are 'selection', 'selectedObjects',
> 'isEditable', 'canAdd' and 'canRemove'.
>
> Gerd
You can type in the field. You don't have to pick the value from those
available in the drop down menu. Give it a try and let me know how it goes.
I have never used an NSObjectController, I go straight for the selection on
the NSArrayController; so I am not speaking from experience but from my
understanding of Cocoa's design and KVO. If I am mistaken that
NSObjectController responds to KVO for it's content object then my Cocoa
theory is seriously lacking.
However, now having thought about it further, your original bind should work
as well. As I would expect selection to return the content object as well or
at least a proxy like most other controllers. It might point to the problem
being else were in your code. Log the content object of your
NSObjectController to make sure it's what you expect it to be, the selected
dictionary.
Regards,
Conor
http://www.bruji.com/
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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