Core data binding "first" of to-many relationship
Core data binding "first" of to-many relationship
- Subject: Core data binding "first" of to-many relationship
- From: Mikkel Eide Eriksen <email@hidden>
- Date: Sat, 27 Nov 2010 17:20:11 +0100
Hi
I have an NSArrayController that holds a set of persons. These persons have a to-many relationship of name objects. Usually they will only have one name, but there may be multiple (or even no name).
In my interface, I have an NSTableView that will display the persons. The attributes are easy enough (gender, etc), but how can I bind the names to a column so only one name is shown for a person?
If I just bind to my person-array controller with the names keypath, obviously I get the description of an array in the cell, which isn't very pretty. Seems I could do it with a custom NSValueTransformer but there is probably a better way?
Mikkel
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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