NSManagedObject temporary instance attribute
NSManagedObject temporary instance attribute
- Subject: NSManagedObject temporary instance attribute
- From: "Paulo F. Andrade" <email@hidden>
- Date: Tue, 7 Aug 2007 12:09:57 +0100
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:
This email sent to email@hidden