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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to