• 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: entity referencing self in relationship attribute
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: entity referencing self in relationship attribute


  • Subject: Re: entity referencing self in relationship attribute
  • From: mmalc crawford <email@hidden>
  • Date: Mon, 14 May 2007 01:31:07 -0700


On May 13, 2007, at 9:22 PM, Gonzalo Castro wrote:

I am at a loss on what to do when the user clicks OK in the buddy chooser sheet. How do I assign the selected names in the buddy chooser to the buddies relationship attribute?

Attributes and relationships are both types of property; there is no such thing as a "relationship attribute".
It's difficult to follow your description since you don't use terms consistently.



Get the selectedObjects from the buddy array controller and add then to the 'buddies' value of the selection of the people array controller (mutableSetValueForKey:@"buddies").


It's not clear why the content of the buddies array controller is dependent on the arranged objects of the people array controller. At a guess, (as a first step at least) it would make more sense for the buddies array controller to also automatically prepare content but use a custom 'arrangedObjects' method to filter out the selection in the people array controller -- presumably people cannot be their own buddies...

mmalc

_______________________________________________

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


  • Follow-Ups:
    • Re: entity referencing self in relationship
      • From: Gonzalo Castro <email@hidden>
References: 
 >entity referencing self in relationship attribute (From: Gonzalo Castro <email@hidden>)

  • Prev by Date: Re: Printing with exotic margins (a basic example)
  • Next by Date: The released object is not releasing memory
  • Previous by thread: entity referencing self in relationship attribute
  • Next by thread: Re: entity referencing self in relationship
  • Index(es):
    • Date
    • Thread