• 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: Where to find?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where to find?


  • Subject: Re: Where to find?
  • From: ML <email@hidden>
  • Date: Mon, 10 May 2010 15:15:02 -0700 (PDT)

Hi Guys,

>> Can anyone point me in a direction of the proper way to find a users home directory

> Look at NSHomeDirectory() or NSHomeDirectoryForUser() ?

Oh, I am using currentUserHomeDirectory = NSHomeDirectoryForUser(NSUserName());
but I was told that this was not proper to be used anymore by another developer.

>> and where to find where applications are installed or can I always assume /Applications?

>There is no place "where applications are installed" on the Mac. An application can be anywhere a user decides >to put them. On the desktop, on a server, on a disk image. What would you use this information for? Why would >you even care?

Ah, well, What I am trying to do is ensure what version and what application of ours they are running. Our app is a plugin and it can be put in a few locations and I want to know. I *can* always check the paths manually and decide, but yes, perhaps LaunchServices would be best.

Kyle, thank you for the link as well.

-ML
_______________________________________________

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

  • Follow-Ups:
    • Re: Where to find?
      • From: Uli Kusterer <email@hidden>
References: 
 >Re: Where to find? (From: Uli Kusterer <email@hidden>)

  • Prev by Date: Re: 32/64-bit transition and memory expansion
  • Next by Date: Re: Where to find?
  • Previous by thread: Re: Where to find?
  • Next by thread: Re: Where to find?
  • Index(es):
    • Date
    • Thread