Re: Initializing object pointers to nil
Re: Initializing object pointers to nil
- Subject: Re: Initializing object pointers to nil
- From: Sherm Pendley <email@hidden>
- Date: Thu, 17 Apr 2003 05:44:58 -0400
>
On Thursday, April 17, 2003, at 05:41 AM, j o a r wrote:
>
>
On Thursday, Apr 17, 2003, at 11:31 Europe/Stockholm, Sherm Pendley
>
wrote:
>
>
> Again, I can't seem to find documentation that spells it out, but have
>
> heard it mentioned many times that variables in Objective-C are
>
> initialized to 0 (aka nil, aka NULL) by default.
>
>
Only instance variables, not local variables - you need to set them to
>
the desired initial value manually.
Oops, sorry, my mistake. I should have looked harder for those
docs... :-(
sherm--
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.