• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSObjectController can't observe NSArrayController's selection?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: NSObjectController can't observe NSArrayController's selection? (From: Gerd Knops <email@hidden>)

  • Prev by Date: Re: NSDateFormatter weekdaySymbols
  • Next by Date: Re: updating UI during long loop using cocoa objective-c
  • Previous by thread: Re: NSObjectController can't observe NSArrayController's selection?
  • Next by thread: A few bindings questions from a bindings-newbie
  • Index(es):
    • Date
    • Thread