• 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
NSObjectController mapped to NSArrayController selection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSObjectController mapped to NSArrayController selection


  • Subject: NSObjectController mapped to NSArrayController selection
  • From: Tom <email@hidden>
  • Date: Wed, 23 Dec 2009 09:10:39 +0100

Hi all!

I have the following situation: NSArrayController which handles array of
Core Data objects. Then I want to map it's selection (there can only be one
selected at a time) to NSObjectController's contents and then use the object
controller for binding to the view. I want to use the object controller as
the entry point for the second nib, but I can't get it to work even in the
same nib. This is how I figure:

NSObjectController bindings (in IB):
- Content Object > (my NSArrayController) with controller key "selection"

A label:
- Value > (the NSObjectController) with controller key "content" and model
key "name"

However the label shows nothing no matter what selection is there.
NSArrayController's selection is properly updated - if I bind the label to
it's selection.name directly it works. What am I missing?

Thanks, Tom
_______________________________________________

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

  • Follow-Ups:
    • Re: NSObjectController mapped to NSArrayController selection
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: Releasing Objects
  • Next by Date: Re: Autorotation for a subview
  • Previous by thread: Re: Releasing Objects
  • Next by thread: Re: NSObjectController mapped to NSArrayController selection
  • Index(es):
    • Date
    • Thread