• 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: How to use NSTimer correctly?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to use NSTimer correctly?


  • Subject: Re: How to use NSTimer correctly?
  • From: Alexander Bokovikov <email@hidden>
  • Date: Sat, 25 Jul 2009 19:50:43 +0600


On 25.07.2009, at 18:48, Dave Keck wrote:

First off, your object's -dealloc is never going to get called,
because NSTimers retain their targets.

If so, then where should I "dealloc" everything, I created in the awakeFromNib? I believed that dealloc will be called when my AppController will be released. But you say it is never released. Then what should I do?


Is your suggestion about "applicationWillTerminate" etc. the correct way to go in this case? And where my AppController will be released? As far as I can understand I can't release it within applicationWillTerminate handler. Am I wrong? Should I write [self release] there?

Thanks.

_______________________________________________

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


  • Follow-Ups:
    • Re: How to use NSTimer correctly?
      • From: Scott Ribe <email@hidden>
References: 
 >How to use NSTimer correctly? (From: Alexander Bokovikov <email@hidden>)
 >Re: How to use NSTimer correctly? (From: Dave Keck <email@hidden>)

  • Prev by Date: Re: How to use NSTimer correctly?
  • Next by Date: Re: How to use NSTimer correctly?
  • Previous by thread: Re: How to use NSTimer correctly?
  • Next by thread: Re: How to use NSTimer correctly?
  • Index(es):
    • Date
    • Thread