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: "Sean McBride" <email@hidden>
- Date: Wed, 8 Oct 2008 19:44:13 -0400
- Organization: Rogue Research
On 10/8/08 10:21 AM, mmalc crawford said:
>> So does the same advice apply for init methods? That is: set ivars
>> directly (unless there is no ivar, in which case you have no choice
>> but
>> to call the setter).
>>
>Yes.
One last related question, if I may.
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:?
Cheers,
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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