• 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: FSRef_fopen alternative
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FSRef_fopen alternative


  • Subject: Re: FSRef_fopen alternative
  • From: Jonny Taylor <email@hidden>
  • Date: Tue, 15 Aug 2006 09:22:03 +0100 (BST)

>>>> I came across a section in my code where I call
FSRef_fopen(),
>>>>
>>> Use FSRefMakePath and pass the path to fopen.
>>>
>>Well, that sounds like a straightforward way to go,
but is it
bullet-proof?
> No, it isn't. However, fopen() is a path-based API;
if you want to use
> fopen() and related APIs, that's the cost. This is
what happens when you
> switch the underpinnings of an OS to modern
super-duper robust Unix. :-/

Bulletproof it may not be, but that's exactly what CW
does. If you still have the MSL sources around
somewhere you can find the implementation of functions
such as this in the file FSp_fopen.c. I don't know
what the legal ramifications might be for a commercial
app [though I think that has been discussed elsewhere
following the demise of CW], but for research
applications where I'm only writing software for
myself, I've just pulled that file out of the MSL
sources, made a couple of changes required for it to
compile, and included it in my code that now builds
under Xcode.

Jonny



___________________________________________________________
The all-new Yahoo! Mail goes wherever you go - free your email address from your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html
 _______________________________________________
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

  • Follow-Ups:
    • Re: FSRef_fopen alternative
      • From: "Edward K. Chew" <email@hidden>
  • Prev by Date: Re: FSRef_fopen alternative
  • Next by Date: Re: Xcode/gcc help in enforcing secure coding?
  • Previous by thread: Re: Template trouble
  • Next by thread: Re: FSRef_fopen alternative
  • Index(es):
    • Date
    • Thread