Re: My newbie question..
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.