Re: coremidi & codewarrior
Re: coremidi & codewarrior
- Subject: Re: coremidi & codewarrior
- From: Laurent Cerveau <email@hidden>
- Date: Thu, 21 Feb 2002 11:49:16 +0100
In order to manipulate references to file in OS X, CFURL is your
friend. Basically it can be used as a central point to do the conversion
with functions like :
CFURLCreateFromFSRef(CFAllocatorRef allocator, const FSRef *fsRef);
CFURLGetFSRef(CFURLRef url, FSRef *fsRef);
CFURLGetFileSystemRepresentation(CFURLRef url, Boolean
resolveAgainstBase, UInt8 *buffer, CFIndex maxBufLen);
CFURLCreateWithFileSystemPath(CFAllocatorRef allocator, CFStringRef
filePath, CFURLPathStyle pathStyle, Boolean isDirectory);
There may be a function that does that directly somewhere around hfs
files but on top of my head I do not remember :-(.
Hope this helps
Laurent
On Thursday, February 21, 2002, at 07:55 AM, Jeremy@Verizon wrote:
Usually I use FSSpecs to open files (I know I should be using FSRefs
now)
but in one place, where I link to a library, the library uses fopen. No
matter what I do fopen always return zero. I am passing it full path
names
for example,' MacOSDrive:testfolder:file'. I then tried it outside the
library in my main app and fopen still fails. I seem to be wasting alot
of
time on a very trivial problem.
Laurent Cerveau
Applications Division
Apple Computer Inc.
email@hidden
_______________________________________________
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.