• 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: Stuck on NSTreeController bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stuck on NSTreeController bindings


  • Subject: Re: Stuck on NSTreeController bindings
  • From: Mark Townsend <email@hidden>
  • Date: Wed, 24 Feb 2010 11:16:44 -0800

Jenny,

I think what you want is to set the Entity on the NSTreeController to be the
Alpha entity, not Delta.

The predicate 'parent == nil' will only give you back Delta objects where
parent == nil.  From what you've said, this will never be true as the Alpha
objects are your top level objects.

Alpha (parent == nil)
|
|->Beta (parent == Alpha)
     |
     |->Delta (parent == Beta)
     |->Delta (parent == Beta)

---
Mark Townsend
http://www.markltownsend.com


On Wed, Feb 17, 2010 at 7:38 PM, Jenny M <email@hidden> wrote:

> Sorry, realizing that the object chain isn't quite right. The Alpha-
> Beta relationship is one to one, NOT many to one. Each alpha has one
> beta, and one beta has multiple deltas. (I have multiple alpha
> objects, hence my initial comment of multiple, but the relationship is
> one-to-one.)
>
>
> On Feb 17, 7:22 pm, Jenny M <email@hidden> wrote:
> > My objects are chained like:
> > Alpha (multiple) -> Beta (one) -> Delta (multiple) (delta has
> > references to itself via parent and children relationships)
> _______________________________________________
>
> 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
>
_______________________________________________

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: Stuck on NSTreeController bindings
      • From: Jenny M <email@hidden>
References: 
 >Stuck on NSTreeController bindings (From: Jenny M <email@hidden>)
 >Re: Stuck on NSTreeController bindings (From: Jenny M <email@hidden>)

  • Prev by Date: Re: Deprecated APIs
  • Next by Date: Odd NSString behavior
  • Previous by thread: Re: Stuck on NSTreeController bindings
  • Next by thread: Re: Stuck on NSTreeController bindings
  • Index(es):
    • Date
    • Thread