Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Event for widget close



A widget I'm working on creates some temporary image files that need to get cleaned up when it exits. However, I haven't been able to find the proper hook to hang my cleanup code on. Using widget.onremove works when the widget is closed by the user, but not on logout. I've tried a number of other possibilities (window.onunload, dealloc method of my plugin, etc.) but nothing seems to get triggered.

My current workaround is to put things in /tmp instead of NSTemporaryDirectory(), so that the images don't show up as "Recovered Items" in the Trash after logout. Does anyone know of a proper solution, though?

Thanks,
--
Mike Blaguszewski / Cocoa Hacker / Ambrosia Software, Inc.


_______________________________________________ Do not post admin requests to the list. They will be ignored. Dashboard-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/dashboard-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.