ScreenSaver cleanup
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.