Re: When to use Core Data?
Re: When to use Core Data?
- Subject: Re: When to use Core Data?
- From: Jens Alfke <email@hidden>
- Date: Fri, 18 Jun 2010 14:48:22 -0700
On Jun 18, 2010, at 2:31 PM, Jason T. Slack-Moehrle wrote:
> I have an app where I have 30 small base image files (like 2k each) that could be displayed to a user.
> ...
> What is the best way to store a sequence of images? I dont know when is best to use Core Data.
Core Data sounds like major overkill for this, especially if the images are hardcoded.
All you really need to store is an array of ~30 integers (picture indexes) for each sequence. The sequences themselves might be stored in an array, or in an array of dictionaries if you want to store data about each one, like a name or mod date. This kind of data is really easy to store in memory using NSArray/NSDictionary, and persistently as a property list.
—Jens _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden