• 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
ScreenSaver cleanup
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ScreenSaver cleanup


  • Subject: ScreenSaver cleanup
  • From: Tom Bernard <email@hidden>
  • Date: Mon, 07 Jul 2003 08:04:13 -0600

My screen saver needs to do some cleanup before being deallocated. I have
placed my cleanup code in the ScreenSaverView's -dealloc method.

-dealloc is called when the screen saver was instantiated by SaverLab or
System Preferences; -dealloc is not called when ScreenSaverEngine runs the
saver.

I have also tried registering for NSApplicationWillTerminateNotification; my
selector is not called when ScreenSaverEngine terminates.

I am considering placing my cleanup code in -stopAnimation, but feel that
direction would lead to SaverLab incompatibilities.

Thanks in advance.

Tom Bernard
email@hidden
_______________________________________________
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: ScreenSaver cleanup
      • From: Darkshadow <email@hidden>
  • Prev by Date: Ordering windows in mixed Carbon/Cocoa app
  • Next by Date: RE: Double to NSString conversion
  • Previous by thread: Ordering windows in mixed Carbon/Cocoa app
  • Next by thread: Re: ScreenSaver cleanup
  • Index(es):
    • Date
    • Thread