Re: entity referencing self in relationship attribute
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