Re: Any ~/Sites/ equivalent of NSDocumentDirectory?
Re: Any ~/Sites/ equivalent of NSDocumentDirectory?
- Subject: Re: Any ~/Sites/ equivalent of NSDocumentDirectory?
- From: Scott Anguish <email@hidden>
- Date: Sun, 31 Aug 2003 01:44:50 -0400
Nope, no domain provides that. There isn't really a similar
user/local/network structure to this that could be modeled. Documents
can be shared across those levels, but web stuff doesn't fit that way
really.
I believe that localization for those directories is done using the
displayed name vs actual name mechanism. The 10.2 Cocoa Release Notes
indicate that is the case
<
http://developer.apple.com/documentation/ReleaseNotes/Cocoa/
AppKit.html> and there is some discussion in System Overview as well
(<
http://developer.apple.com/documentation/MacOSX/Conceptual/
SystemOverview/FileSystem/chapter_9_section_2.html#//apple_ref/doc/uid/
20000986/BCIGJCEA>).
I'd suggest using the NSHomeDirectory(), and then use the
pathByAppendingComponent:@"Sites" appended on that string.
Incidently, FindFolder (which is the Carbon equiv to the domain stuff
in Cocoa) doesn't seem to list a "Sites" applicable constant either.
On Aug 30, 2003, at 8:23 PM, Michael Mulligan wrote:
I'm trying to make an application that needs to copy some files into
the
~/Sites directory and so I'm trying to search the domain for the Sites
directory rather than hard-coding a path (a la
http://developer.apple.com/documentation/Cocoa/Conceptual/
LowLevelFileMgmt/T
asks/LocatingDirectories.html).
However, there's one problem: there doesn't seem to be any constant
that
represents the Sites folder (like there is to represent the Documents
folder
using NSDocumentDirectory). Did I miss something? Or should I just
hard-code
"Sites" (won't this not work for international users or is the folder
named
"Sites" there as well?)?
Thanks in advance!
-Mike
__________
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me
spread!
__________
_______________________________________________
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.