Re: Core Data: fetching a subset of attributes/columns
Re: Core Data: fetching a subset of attributes/columns
- Subject: Re: Core Data: fetching a subset of attributes/columns
- From: "Hank Heijink (Mailinglists)" <email@hidden>
- Date: Sat, 20 Mar 2010 20:53:27 -0400
On Mar 20, 2010, at 1:52 PM, Gabriel Fernandez wrote:
> I wanted to get a subset of an entity's attributes because one of the ManagedObject's attributes is a large image.
You might consider another design: one that defines two entities, such that the image attribute of your object is replaced by a relation. That way, the image isn't fetched when you only ask for the main entity. If your on the iPhone, look at the iPhoneCoreDataRecipes or PhotoLocations sample code for examples of this technique. If you're not on the iPhone, I'm sure there are other examples out there.
Hope this helps,
Hank
_______________________________________________
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