Temporary object created at runtime with Core Data
Temporary object created at runtime with Core Data
- Subject: Temporary object created at runtime with Core Data
- From: Eric Morand <email@hidden>
- Date: Tue, 25 Apr 2006 00:59:27 +0200
Hi guys !
I'm developping an application that uses a sidebar which will
contains some smart groups (an entity named "SmartGroup"). I'd like
some of theses smart groups to be fixed, just like the first iTunes
sources (Podcasts, Party Shuffle...) : they can't be deleted,
modified or moved by the user.
I believe there is no need to save them in the database. I'd rather
create them at run-time.
Since I don't want them to be stored in my SQLite database, I have a
problem : how can I insert temporary objects in my managed context ?
I'm nearly certain I need to use a memory store for that kind a
thing, but I can't put my finger on the best way to implement it. Is
this possible to have some objects inserted in an in memory store and
some others in the SQLite database - while using the same context ?
Eric.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden