Re: Listing only unique attributes in a set of Core Data Objects
Re: Listing only unique attributes in a set of Core Data Objects
- Subject: Re: Listing only unique attributes in a set of Core Data Objects
- From: mmalcolm crawford <email@hidden>
- Date: Thu, 26 May 2005 23:21:39 -0700
On May 26, 2005, at 10:14 PM, Fletcher T. Penney wrote:
There does not appear to be a means of telling Core Data to deliver
"the first person to have each firstName" out of all the people in
the database. Is there a way to do this within the Core Data
realm itself, or will it require a custom function to scan each
person, and remove the duplicates sharing a given firstName (or
lastName, etc)???
Do you need to do this with a fetch, or is it not "live" based on
what's "in the user interface" already (i.e. you're actually
filtering)? If you're actually filtering, you can probably use
@distinctUnionOfObjects.firstName somewhere along the line...
mmalc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden