Using HFS paths in the standard C libraries
Using HFS paths in the standard C libraries
- Subject: Using HFS paths in the standard C libraries
- From: "Ben Staveley-Taylor" <email@hidden>
- Date: Thu, 12 Oct 2006 09:35:26 +0100
- Thread-topic: Using HFS paths in the standard C libraries
I am porting some legacy code from CodeWarrior to XCode. The old code
was originally written in the days of Mac OS 9 and uses HFS-style paths
extensively.
Effectively, I want to arrange so that I can write:
fopen("DiskName:FolderName:FileName.txt")
instead of:
fopen("/Volumes/DiskName/FolderName/FileName.txt")
With CodeWarrior it was possible to do this even in Mach-O targets
because you could build your own copy of the MSL C library from the
sources they provided and a configuration define (#define
_MSL_CARBON_FILE_APIS 1, to be specific) would modify the library to use
HFS-style paths instead of the default POSIX style paths.
Is it possible to do the same trick with Xcode somehow?
Thanks
Ben.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden