• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Core Data: fetching a subset of attributes/columns
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Core Data: fetching a subset of attributes/columns (From: Gabriel Fernandez <email@hidden>)

  • Prev by Date: Re: CoreData database sharing and migration
  • Next by Date: Re: about 3D sound
  • Previous by thread: Re: Core Data: fetching a subset of attributes/columns
  • Next by thread: Re: Core Data: fetching a subset of attributes/columns
  • Index(es):
    • Date
    • Thread