Re: (newbie)cocoa and darwin 6.0....
Re: (newbie)cocoa and darwin 6.0....
- Subject: Re: (newbie)cocoa and darwin 6.0....
- From: Charles Srstka <email@hidden>
- Date: Tue, 29 Oct 2002 23:03:27 -0600
On Tuesday, October 29, 2002, at 10:24 PM, email@hidden wrote:
At 10:53 AM +0100 10/19/02, Finlay Dobbie wrote:
On Saturday, October 19, 2002, at 03:31 am, email@hidden wrote:
There is an open source working version of Core Foundation for
Darwin which has been ported to some other platforms. The only
difference between it and the closed-source version of CF is the
closed version supports conversion of CFURLs to and from FSRefs
which is very useful.
That is incorrect. CF-Lite is missing lots of functionality of CF.
CFNotification springs to mind as the most obvious example, but there
may be others.
I still don't know how to create an FSRef without closed source libs
|-(
See File Manager... For example, FSPathMakeRef. In fact, the code for
CFURLCopyFSRef *IS* in CF-Lite (CoreFoundation/URL.subproj/URL.c,
near the bottom), it's just #ifdef'd out.
-- Finlay
Yes yes, it does it using Carbon. But how does Carbon do it? After all
Carbon does run on top of Darwin, and FSRefs also behave correctly on
UFS volumes.
Why would you want to do this? It's easy enough to do with Carbon, or
with a quick Cocoa wrapper around the relevant methods, or with
CFURLCopyFSRef.
If you want to use FSRefs with straight Darwin, I'd recommend against
it - FSRefs are designed for Mac GUI apps, and with plain old Darwin at
the command line, files are probably much less likely to move around
anyway, so you don't really need them.
At any rate, the only way you'll make an FSRef without Carbon is if you
manage to crack the format, which is probably more trouble than it's
worth.
Charles
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.