Detecting application bundle being moved
Detecting application bundle being moved
- Subject: Detecting application bundle being moved
- From: Seth Willits <email@hidden>
- Date: Wed, 17 Apr 2013 15:08:41 -0700
I think I've finally figured out that a couple crash patterns are caused by the user moving my application while it's still running. (I tested it and for some reason Finder wasn't warning me when I moved it, which is kinda odd.)
How and why they're moving it is a bit unclear at the moment, but regardless I'd like to detect it having been moved and throw up an alert and quit/relaunch the app etc so it won't crash later on.
Question is: what's the easiest way to detect it having been moved? I thought I'd get lucky and somewhere there'd be a handy notification, but I don't see one. It looks like I'll have to use the FSEvent API? I'm not a fan of it, so I'm hoping there's a slimmer solution.
--
Seth Willits
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden