• 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: email@hidden
  • Date: Fri, 21 Jun 2002 11:47:13 -0500

Thanks for the response.. I finally found NSFilePathUtilities doc (by reading the header file!) the other doc
says "this is under construction" which certainly doesn't help.. LOL

I like the NSHomeDirectory() approach better that relying on "~" in the path, but that' s just me..

Now.. I am going to "append" the Documents folder, and after much reading figure it is better
to call the NSLocalizeString routine to get the "localized" Documents folder name so if/when
I decide to localize the app to another language the appropriate Documents folder can
be found.. Does this make sense??

Thanks for the help!

-SJM

On Friday, June 21, 2002, at 10:33 AM, John Anderson wrote:

I typically would use something like [@"~/Documents" stringByExpandingTildeInPath]

John


On Friday, June 21, 2002, at 08:03 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.
_______________________________________________
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.

  • Follow-Ups:
    • Re: My newbie question..
      • From: Scott Anguish <email@hidden>
References: 
 >Re: My newbie question.. (From: John Anderson <email@hidden>)

  • Prev by Date: Re: Adding data to a TableView
  • Next by Date: Re: NSData weirdness... another victim of dubious documentation?
  • Previous by thread: Re: My newbie question..
  • Next by thread: Re: My newbie question..
  • Index(es):
    • Date
    • Thread