• 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: Trouble with MakeFSSpec
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Trouble with MakeFSSpec (From: Tristan Leblanc <email@hidden>)

  • Prev by Date: Re: An OutlineView with Finder Editing Behavior
  • Next by Date: Re: Start an application with a panel
  • Previous by thread: Re: Trouble with MakeFSSpec
  • Next by thread: Re: Trouble with MakeFSSpec
  • Index(es):
    • Date
    • Thread