Re: FSSpec for non-existant file?
Re: FSSpec for non-existant file?
- Subject: Re: FSSpec for non-existant file?
- From: Raphael Sebbe <email@hidden>
- Date: Thu, 15 Nov 2001 08:39:19 +0100
Easiest way, the undocumented and not in any header function:
err = NativePathNameToFSSpec([filename fileSystemRepresentation],
&mySpec, 0);
Note also you'll get an error telling the file doesn't exist.
An other way of getting it could be to use an FSRef and a combination of
pascal strings, but it would require a lot more effort...
I wish Apple made this function public finally because it is so useful
for Cocoa/BSD programmers to play with QuickTime or other Carbon
Managers.
Raphael
On Thursday, November 15, 2001, at 05:12 AM, Andre Lipinski wrote:
Hello,
I've made enormous use of the two line posix path to FSSpec routine
posted here by Eric and now need to get something similar: an FSSpec
for a non-existant file.
How in the world?
Thank you.
Andre.
p.s. Saw a nifty book on Carbon by Sams today at the local computer
book store. Should have bought it I think...
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev