• 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
Re: Initializing object pointers to nil
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Initializing object pointers to nil (From: j o a r <email@hidden>)

  • Prev by Date: Re: Initializing object pointers to nil
  • Next by Date: selectText field in case of Return key
  • Previous by thread: Re: Initializing object pointers to nil
  • Next by thread: Re: Initializing object pointers to nil
  • Index(es):
    • Date
    • Thread