Re: CFStringCreateWithCharacters and unicode ":" chars
Re: CFStringCreateWithCharacters and unicode ":" chars
- Subject: Re: CFStringCreateWithCharacters and unicode ":" chars
- From: Ken Hawkins <email@hidden>
- Date: Tue, 11 May 2004 11:47:14 -0700
on a bit more inspection it appears the FSGetVolumeInfo(...) is not
correctly inpterpreting the ':' in the volume name. since this is an
apparent hold over for mac is there a newer call to accomplish
retrieving all the Volumes on a machine other than this call?
i guess i could loop through everything on /Volumes and look for aiff
files to determine if it is an audio CD or not but i was hopeful that
there is a more elegant way...
thanks,
ken;
On May 11, 2004, at 10:16 AM, Ken Hawkins wrote:
how can i correctly retrieve a volumes name and ensure that the special
chars do not get munged?
in this bit of code from the AudioCDSample:
for (volumeIndex = 1; result == noErr || result != nsvErr;
volumeIndex++)
{
FSVolumeRefNum actualVolume;
HFSUniStr255 volumeName;
FSVolumeInfo volumeInfo;
bzero((void *) &volumeInfo, sizeof(volumeInfo));
result = FSGetVolumeInfo(kFSInvalidVolumeRefNum,
volumeIndex,
&actualVolume,
kFSVolInfoFSInfo,
&volumeInfo,
&volumeName,
NULL);
...
_______________________________________________
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.