• 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
Re: NSApplicationSupportFolder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSApplicationSupportFolder


  • Subject: Re: NSApplicationSupportFolder
  • From: BK <email@hidden>
  • Date: Tue, 28 Dec 2004 09:49:06 +0900


On Dec 28, 2004, at 4:03, Sean McBride wrote:

Hard coding paths is very bad. "Application Support" may change names in
the future. Using the FSFindFolder API is best and safest.

AppleScript's Standard Additions have a command to return the path to the Application Support folder.

POSIX path of (path to application support)

--> "
/Library/Application Support/"

Even if Apple was to change the path in the future, this should still return the correct path.

So, what you could do is have your application run an embedded one line AppleScript to obtain the path and then store it away for use throughout your code.

Not for purists, but safe and performance shouldn't be an issue if you call this only once.

rgds
bk
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSApplicationSupportFolder
      • From: Stephan Burlot <email@hidden>
    • Re: NSApplicationSupportFolder
      • From: John Stiles <email@hidden>
References: 
 >Re: NSApplicationSupportFolder (From: Shaun Wexler <email@hidden>)
 >Re: NSApplicationSupportFolder (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Subclassing NSWindowController for multi-window NSDocument?
  • Next by Date: Re: NSApplicationSupportFolder
  • Previous by thread: Re: NSApplicationSupportFolder
  • Next by thread: Re: NSApplicationSupportFolder
  • Index(es):
    • Date
    • Thread