Re: Best Way to Handle Properties?
Re: Best Way to Handle Properties?
- Subject: Re: Best Way to Handle Properties?
- From: "Shawn Erickson" <email@hidden>
- Date: Wed, 20 Aug 2008 21:31:17 -0700
On Wed, Aug 20, 2008 at 10:42 AM, Dave <email@hidden> wrote:
> Yes, all 56 properties are required for the object to be valid, so in the
> initializer I set the NSString pointers to nil, zeroize the integers and set
> the dataValid flag to FALSE.
Objective-C guarantees that all ivars will be initialized to zero (aka
nil, false, NO, etc.) when you allocate an object. You don't need to
set ivars to zero yourself in the initializer.
-Shawn
_______________________________________________
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