• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSManagedObject temporary instance attribute
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSManagedObject temporary instance attribute
      • From: Mike Abdullah <email@hidden>
  • Prev by Date: Re: image buttons + weird "focus" highlights
  • Next by Date: Re: NSManagedObject temporary instance attribute
  • Previous by thread: Re: Integrating Unix scripting in Cocoa app
  • Next by thread: Re: NSManagedObject temporary instance attribute
  • Index(es):
    • Date
    • Thread