Re: Finding a users Music folder
Re: Finding a users Music folder
- Subject: Re: Finding a users Music folder
- From: Stephen Davis <email@hidden>
- Date: Thu, 10 Apr 2008 11:46:27 -0700
The cocoa list can't really help you, it's a CoreServices API.
They'll just steer you towards some [NSFileManager xxx] API
instead. ;-)
Anyway, it should work for all machines so please file a bug if it
doesn't. What folder is being returned?
Also, you are passing the kDontCreateFolder flag -- have you tried
setting it to true on the machines where it's failing?
stephen
On Apr 10, 2008, at 11:27 AM, Kevin Dixon wrote:
You may want to ask on the cocoa-dev list, they're gurus of all
things.
CoreAudio doesn't really deal with this--the location of the Music
folder
is more in the "user-experience" realm
-Kevin
Hello All,
I have been using the following to locate the "Music" folder to store
data in.
status = FSFindFolder(kUserDomain, kMusicDocumentsFolderType,
kDontCreateFolder, &docRef);
It works in most cases, however, I have found that it does not work
on some machines. It returns with no error, however the folder
returned is not the users music folder. I would prefer to use a
method like this rather than searching for "~/Music" or something
like this.
What is the best way to locate the "Music folder?
Best regards,
Jim Heintz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden