• 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: Finding a users Music folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finding a users Music folder


  • Subject: Re: Finding a users Music folder
  • From: Jim Heintz <email@hidden>
  • Date: Thu, 10 Apr 2008 12:19:28 -0700

I didn't feel that this is the right list, but since it is music related I thought I would give it a shot...

As for what is returned, if it works it should be something like "/ Users/usrename/Music", but when it fails it returns "/Music", even if the users Music folder exists. This appears to happen on machines that are localized to German or Brazillian.... perhaps others, but those I have seen.

I don't really want to create the folder in the wrong place, that is why I have not set the flag to create the folder.

Best regards,

Jim
On Apr 10, 2008, at 11:46 AM, Stephen Davis wrote:

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:
40apple.com


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
  • Follow-Ups:
    • Re: Finding a users Music folder
      • From: David Duncan <email@hidden>
References: 
 >Finding a users Music folder (From: Jim Heintz <email@hidden>)
 >Re: Finding a users Music folder (From: "Kevin Dixon" <email@hidden>)
 >Re: Finding a users Music folder (From: Stephen Davis <email@hidden>)

  • Prev by Date: Re: Offline Audio Units
  • Next by Date: Re: Offline Audio Units
  • Previous by thread: Re: Finding a users Music folder
  • Next by thread: Re: Finding a users Music folder
  • Index(es):
    • Date
    • Thread