• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
-[NSWorkspace absolutePathForAppBundleWithIdentifier:] and the Trash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

-[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


  • Prev by Date: Re: Binding an Array of Dictionaries
  • Next by Date: Re: [COCOA] notification of enter/focus event?
  • Previous by thread: Re: [COCOA] notification of enter/focus event?
  • Next by thread: NSUserDefaults Croaks on Dictionary Containing NSNumber as Key
  • Index(es):
    • Date
    • Thread