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