• 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: (newbie)cocoa and darwin 6.0....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: (newbie)cocoa and darwin 6.0.... (From: email@hidden)

  • Prev by Date: Re: EOF API?
  • Next by Date: NSUnbufferedIO really line buffered?
  • Previous by thread: Re: (newbie)cocoa and darwin 6.0....
  • Next by thread: [Q] Determining startup volume
  • Index(es):
    • Date
    • Thread