Re: Using dealloc method in a class that have only class methods
Re: Using dealloc method in a class that have only class methods
- Subject: Re: Using dealloc method in a class that have only class methods
- From: Nick Zitzmann <email@hidden>
- Date: Wed, 21 Oct 2009 18:58:27 -0600
On Oct 21, 2009, at 6:41 PM, Tharindu Madushanka wrote:
I have created a class with only class methods in it and a single
static
instance variable allocated only one with a class method. Do I need
to add a
-(void) dealloc: method to this class. Could someone kindly explain.
No. You only need to implement -dealloc if you create instances of a
class that retain certain objects or register as observers of
something. If you create a class method-only class, then there will be
no instances of that class, so there's nothing to deallocate.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden