Re: checking if an object's instance exists.
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