Re: In dealloc(): ref @property, Can I use "<property object> = nil; " vs "[<property object> release]; " ?
Re: In dealloc(): ref @property, Can I use "<property object> = nil; " vs "[<property object> release]; " ?
- Subject: Re: In dealloc(): ref @property, Can I use "<property object> = nil; " vs "[<property object> release]; " ?
- From: mmalc crawford <email@hidden>
- Date: Wed, 08 Oct 2008 17:46:43 -0700
On Oct 8, 2008, at 4:44 PM, Sean McBride wrote:
What about awakeFromInsert/awakeFromFetch? If my entity has an
attribute named 'firstName', should I use the (magically pre-existing)
method setFirstName: or should I use setPrimitiveValue:forKey:?
"If you want to set attribute values in an implementation of
[awakeFromInsert/awakeFromFetch], you should typically use primitive
accessor methods (either setPrimitiveValue:forKey: or—better—the
appropriate custom primitive accessors). This ensures that the new
values are treated as baseline values rather than being recorded as
undoable changes for the properties in question."
(Forthcoming.)
mmalc
_______________________________________________
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