-[NSWorkspace absolutePathForAppBundleWithIdentifier:] and the Trash
-[NSWorkspace absolutePathForAppBundleWithIdentifier:] and the Trash
- Subject: -[NSWorkspace absolutePathForAppBundleWithIdentifier:] and the Trash
- From: Jeff Johnson <email@hidden>
- Date: Fri, 11 Dec 2009 23:41:19 -0600
Could someone please clarify the behavior of -[NSWorkspace
absolutePathForAppBundleWithIdentifier:] when an application is in the
Trash?
In almost all of my testing, the method returns nil when an app is in
the Trash. However, one time in the debugger (on Mac OS X 10.5.8) I
caught it returning an app's path in "/Users/jeff/.Trash". Strangely,
I've never been able to reproduce that result a second time.
I would appreciate any clarification on how the method handles the
Trash. There doesn't seem to be any documentation about that. Given my
one-time result, we may have to consider the behavior undefined. But
maybe that one instance was just a bug. Clearly the behavior is not
entirely random.
-Jeff
_______________________________________________
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