• 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: coremidi & codewarrior
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: coremidi & codewarrior
      • From: "Jeremy@Verizon" <email@hidden>
References: 
 >Re: coremidi & codewarrior (From: "Jeremy@Verizon" <email@hidden>)

  • Prev by Date: Re: Selection of sound source for SPBRecord
  • Next by Date: Which Macs have AppleTexasAudio driver?
  • Previous by thread: Re: [coreaudio] Re: coremidi & codewarrior
  • Next by thread: Re: coremidi & codewarrior
  • Index(es):
    • Date
    • Thread