Re: Core data images
Re: Core data images
- Subject: Re: Core data images
- From: Kyle Sluder <email@hidden>
- Date: Mon, 26 Jul 2010 05:50:07 -0700
On Jul 25, 2010, at 11:41 PM, Amy Gibbs <email@hidden> wrote:
> I'm working on a core data app that has an entity called Product. I'd like to have an image attribute for it but I'm expecting the app to have thousands of products stored over time so storing the images in the app will bloat it out and slow it down.
Nitpick: "in the app" implies the images are stored inside your app bundle's Resources folder. You probably meant "in the persistent store."
>
>
> What I'd like to do is have an imagewell on the interface where I could drop an image from the finder and it would copy the image file to a set destination and save the filename to the store so it can just be referenced.
>
> In another part of the interface I'd like a collection view that displayed all the product images for a given relationship.
>
> Does this seem like the right approach or am I completely wrong?
This is one recommended approach in the Core Data documentation for things like large image attachments. So you're on the right track.
>
> I'm a beginner so I apologise if this is a stupid question, if you could point me in the right direction I'd appreciate it.
Core Data is not a beginner technology; I would highly recommend starting smaller and working your way up.
--Kyle Sluder_______________________________________________
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