Re: kAUPresetExternalFileRefs string representations
Re: kAUPresetExternalFileRefs string representations
- Subject: Re: kAUPresetExternalFileRefs string representations
- From: Doug Wyatt <email@hidden>
- Date: Fri, 18 Jun 2004 15:08:29 -0700
From: Marc Poirier <email@hidden>
Date: 17 June 2004 2:49:47 PM
To: email@hidden
Subject: kAUPresetExternalFileRefs string representations
In AUPresetsAndFileReferences.rtf, it says to use CFStrings instead of
CFURLs for kAUPresetExternalFileRefs in ClassInfo. However, it does
not
say what kind of CFString representations to store. I can think of 2
distinctly different approaches that could be taken, and since hosts
are
expected to be able to interpret this AU state data as well as the
plugin,
it seems like this should done one consistent way, so I wanted to get
that
clarified if possible.
1) You could fetch a CFURL's string using CFURLGetString() and then
convert it back to a CFURL using CFURLCreateWithString().
or
2) You could fetch the URL's string using CFURLCopyFileSystemPath()
and
then convert it back to a CFURL using CFURLCreateWithFileSystemPath().
Each will result in different CFStrings, so which should we do? And if
the answer CFURL*FileSystemPath(), then which CFURLPathStyle should we
use?
The language about URLs might be confusing.
Imagine that the CFStringRef is an NSString(NSStringPathExtensions) as
used in Cocoa -- it contains a full Posix-style path. So the answer is
choice 2, with Posix paths.
Doug
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.