• 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: My newbie question..
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: My newbie question..


  • Subject: Re: My newbie question..
  • From: Nathan Day <email@hidden>
  • Date: Sat, 22 Jun 2002 00:53:26 +0930

NSString *NSHomeDirectory(void)

look in the Cocoa Foundation functions section

On Saturday, June 22, 2002, at 12:33 AM, email@hidden wrote:

Ok .. Like many applications I want to look for (and store) various "application documents"
under the user's home directory "Documents" folder .. under a directory I create (if it is not there)
for the application..

I read the FileMangler stuff and know how to create the folder and look for the stuff I want..
What I CAN'T seem to find is an easy / reliable way to find the current user's home directory path..

I was hoping NSUser had something but I can't see it.. I don't want to rely on /Users/name/Documents/xxx
since it does NOT have to be there (Think OS X Server.. )

So.. what's the "official" way to find the user's home directory??

Also.. is there a good example of using NSFileWrapper stuff within a doc application specifically
a combination of NSDirectoryWrapper who itself has multiple wrappers?? Seems sort of complex
how to tie that into a Cocoa Document structure using NSDocument / NSWindowController, etc.

TIA

-SJM
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >My newbie question.. (From: email@hidden)

  • Prev by Date: Re: calling a shell script from an objective C application
  • Next by Date: Re: My newbie question..
  • Previous by thread: My newbie question..
  • Next by thread: Re: My newbie question..
  • Index(es):
    • Date
    • Thread