Re: Finding user's Music folder (and others)?
Re: Finding user's Music folder (and others)?
- Subject: Re: Finding user's Music folder (and others)?
- From: Rick Mann <email@hidden>
- Date: Thu, 17 Sep 2009 20:03:00 -0700
Hmm. I take it back. I can't get code calling
NSSearchPathForDirectoriesInDomains() to compile.
NSArray* paths = NSSearchPathForDirectoriesInDomains
(NSMusicDirectory, NSUserDomainMask, false);
error: 'NSMusicDirectory' was not declared in this scope
What do I need to do to get NSMusicDirectory?
TIA.
On Sep 17, 2009, at 19:03:47, Rick Mann wrote:
Sigh, sorry. I looked at NSSearchPathForDirectoriesInDomains() and
dismissed it without looking more closely. That's what I needed.
Sorry for the noise.
On Sep 17, 2009, at 18:52:28, Rick Mann wrote:
I need to find the "iTunes Music Library.xml" file, which I know to
be in the iTunes music folder under the iTunes directory. Is there
an API call to get the user's Music folder? I realize iTunes allows
you to specify another location for the music folder, so perhaps I
need to ask iTunes for it directly, but for the time being finding
the Music folder is a good start.
Generally speaking, how do I find the special user directories?
I know about NSHomeDirectory(). Searching Google and the docs for
things like "find folder" "special directories" "fsfindfolder"
turned up a ton of pretty useless stuff.
TIA,
Rick
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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