Re: Temporary object created at runtime with Core Data
Re: Temporary object created at runtime with Core Data
- Subject: Re: Temporary object created at runtime with Core Data
- From: Eric Morand <email@hidden>
- Date: Tue, 25 Apr 2006 15:13:41 +0200
Eric,
On Apr 25, 2006, at 2:15 PM, Eric Morand wrote:
Why do you want them to be stored there?
Because I don't know where to store them elsewhere. Where could I
insert them if not in a managed context ?
Perhaps I just fundamentally do not understand your design, but it
seems to me the objects being intentionally transient, they do not
need to be stored anywhere--I'd just keep a pointer to them in some
ivar, or in an array kept in an ivar, or something like that and
that would be all.
But I want these transient objects to be instances of a managed
object Class. Do you suggest that I could initialize themm with
another method than the designated init... method of
NSManagedObject ? Because if I use the designated method, it insert
the object in a context :
- (id)initWithEntity:(NSEntityDescription*)entity
insertIntoManagedObjectContext:(NSManagedObjectContext*)context
_______________________________________________
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