Re: Trouble with MakeFSSpec
Re: Trouble with MakeFSSpec
- Subject: Re: Trouble with MakeFSSpec
- From: Ricky Sharp <email@hidden>
- Date: Mon, 07 Nov 2005 06:39:42 -0600
On Monday, November 07, 2005, at 03:24AM, Tristan Leblanc <email@hidden> wrote:
>
>Hello,
>
>I need to get the file spec of a file before passing it to a
>quicktime graphic importer...
>
>OSErr err = FSMakeFSSpec
>(0,0,"\p:Volumes:MacHD:Files:myFile",&fileSpec);
>
>I get a -120 (dirNFerror).
>
>What's wrong with this?
Do not use FSSpec; it has been deprecated. QuickTime includes updated APIs (as of version 6.0 I believe) to be able to pass it FSRef or CFString paths/files (Note that CFString is toll-free-bridged to NSString, so you can pass it NSString as well).
If you can require Mac OS X 10.4 or later, also look into using QTKit APIs.
--
Rick Sharp
Instant Interactive(tm)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden