• 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: CFStringCreateWithCharacters and unicode ":" chars
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: CFStringCreateWithCharacters and unicode ":" chars
      • From: Clark Cox <email@hidden>
References: 
 >CFStringCreateWithCharacters and unicode ":" chars (From: Ken Hawkins <email@hidden>)

  • Prev by Date: ExceptionInInitializerError Exception while invoking NSRuntime in an signed applet...Please help..
  • Next by Date: [ANN] WWDC 2004: from John Geleynse.
  • Previous by thread: CFStringCreateWithCharacters and unicode ":" chars
  • Next by thread: Re: CFStringCreateWithCharacters and unicode ":" chars
  • Index(es):
    • Date
    • Thread