• 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: checking if an object's instance exists.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: checking if an object's instance exists.


  • Subject: Re: checking if an object's instance exists.
  • From: Sherm Pendley <email@hidden>
  • Date: Sat, 5 Feb 2005 01:20:22 -0500

On Feb 5, 2005, at 1:11 AM, Kevin Ballard wrote:

You should also set object1 to nil in your init method to be safe (AFAIK there's no docs saying ivars are zeroed when allocated, so I wouldn't assume it)

Eh? It's right there in the description for +alloc:

"The isa instance variable of the new instance is initialized to a data structure that describes the class; memory for all other instance variables is set to 0."

sherm--

Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: checking if an object's instance exists.
      • From: Kevin Ballard <email@hidden>
References: 
 >checking if an object's instance exists. (From: Aaron Boothello <email@hidden>)
 >Re: checking if an object's instance exists. (From: Kevin Ballard <email@hidden>)

  • Prev by Date: Re: checking if an object's instance exists.
  • Next by Date: Strange behavior when editing NSBrowserCell
  • Previous by thread: Re: checking if an object's instance exists.
  • Next by thread: Re: checking if an object's instance exists.
  • Index(es):
    • Date
    • Thread