- CFIndex len = CFStringGetLength( path ) ;
- CFIndex max = CFStringGetMaximumSizeForEncoding( len, kCFStringEncodingUTF8 ) ;
- wxChar* buf = cwd.GetWriteBuf( max ) ;
- CFStringGetCString( path , buf , max + 1 , kCFStringEncodingUTF8 ) ;
- CFRelease( path ) ;
- cwd.UngetWriteBuf() ;