Re: NSManagedObject temporary instance attribute
Re: NSManagedObject temporary instance attribute
- Subject: Re: NSManagedObject temporary instance attribute
- From: Mike Abdullah <email@hidden>
- Date: Tue, 7 Aug 2007 12:19:18 +0100
When the object turns into a fault, your instance variable remains
the same. It is up to you to manage it from the -willSave -
didTurnIntoFault etc. methods.
Mike.
On 7 Aug 2007, at 12:09, Paulo F. Andrade wrote:
Hi!
For a few times I have felt the need to add a temporary ivar to an
NSManagedObject.
I know I can create a transient attribute in the model and use
that. But I don't even want for this temporary ivar to be part of
the undo & redo stuff or even to send KVO notifications. I really
just want a temporary variable to be there in between method
invocations.
My question is:
What would happen if I declared a variable like shown below when my
managed object get's turned into a fault?
@interface SomeObject : NSManagedObject {
MyObject *obj;
}
@end
Another question, does a save: operation on a
NSManagedObjectContext turn all registered object into a fault?
Paulo F. Andrade 52439@IST
mailto: email@hidden
_______________________________________________
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:
40mikeabdullah.net
This email sent to email@hidden
_______________________________________________
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