• 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: Unwanted retain
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unwanted retain


  • Subject: Re: Unwanted retain
  • From: "b.bum" <email@hidden>
  • Date: Thu, 5 Feb 2004 11:28:57 -0800

This horse deserves flogging as it is a very large source of confusion.

On Feb 5, 2004, at 10:14 AM, Jens Bauer wrote:
-I always released the timer after invalidating it.
I don't know whether this would make my application crash or not, however, I experienced crashes now and then, while clicking the close-button in a window, where I had a timer running!

If you called -retain (or +alloc), you should -release. If you didn't, you should not. If you are relying on the NSRunLoop to retain your timer, your code is buggy.

b.bum
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Unwanted retain
      • From: Jens Bauer <email@hidden>
References: 
 >Re: Unwanted retain (From: Jens Bauer <email@hidden>)

  • Prev by Date: Re: Background app, NSStatusItem, tight loop, event handling
  • Next by Date: Re: Converting Japanese C- string to NSString
  • Previous by thread: Re: Unwanted retain
  • Next by thread: Re: Unwanted retain
  • Index(es):
    • Date
    • Thread