Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fetching a unique data set using core data




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: http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >fetching a unique data set using core data (From: Alan Donsky <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.