Re: fetching a unique data set using core data
Re: fetching a unique data set using core data
- Subject: Re: fetching a unique data set using core data
- From: mmalcolm crawford <email@hidden>
- Date: Sat, 13 Aug 2005 11:14:17 -0700
On Aug 13, 2005, at 9:38 AM, Alan Donsky wrote:
I have a managed object Entity called A which has a sting attribute b.
There will be a lot of A objects created.
In general, there will be only a few unique b attributes (with many
repeats).
Is there a way to fetch a unique list of b attributes in the
managed object context?
No. You must fetch all As, then you can use array/set operators on
the result, such as @distinctUnionOfObjects:
<http://developer.apple.com/documentation/Cocoa/Conceptual/
KeyValueCoding/Concepts/ArrayOperators.html>
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