• 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: j o a r <email@hidden>
  • Date: Thu, 17 Apr 2003 11:41:00 +0200

Only instance variables, not local variables - you need to set them to the desired initial value manually.

j o a r

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.
_______________________________________________
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.

  • Follow-Ups:
    • Re: Initializing object pointers to nil
      • From: Sherm Pendley <email@hidden>
References: 
 >Re: Initializing object pointers to nil (From: Sherm Pendley <email@hidden>)

  • Prev by Date: Re: Initializing object pointers to nil
  • Next by Date: Re: Initializing object pointers to nil
  • Previous by thread: Re: Initializing object pointers to nil
  • Next by thread: Re: Initializing object pointers to nil
  • Index(es):
    • Date
    • Thread