• 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: Using dealloc method in a class that have only class methods
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Using dealloc method in a class that have only class methods (From: Tharindu Madushanka <email@hidden>)

  • Prev by Date: Re: NSColor for darker hightlight color
  • Next by Date: Re: How to run a panel that customizes a new NSDocument
  • Previous by thread: Using dealloc method in a class that have only class methods
  • Next by thread: Re: Cocoa-dev Digest, Vol 6, Issue 1522
  • Index(es):
    • Date
    • Thread