• 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
Cocoa AU window close and retain count
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cocoa AU window close and retain count


  • Subject: Cocoa AU window close and retain count
  • From: "J. C." <email@hidden>
  • Date: Thu, 26 Apr 2007 13:35:04 -0500


As far as I understand, when closing the window of an AU, the hosts calls "release" on the "CocoaView". This should call dealloc, where the event listeners are removed. The problem is that if any object has retained the view (in my case a timer), then dealloc is never called, causing problems the next time the window is opened.


My question is: Is there any method I can implement that will get called on window close, so that I can invalidate my timer so tha the view gets properly released? If not, then what would be the best way to solve this issue?

Thanks,

J.C.

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Cocoa AU window close and retain count
      • From: Michael Hopkins <email@hidden>
  • Prev by Date: Clock sound
  • Next by Date: Re: Cocoa AU window close and retain count
  • Previous by thread: Clock sound
  • Next by thread: Re: Cocoa AU window close and retain count
  • Index(es):
    • Date
    • Thread