• 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: FSSpec for non-existant file?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: FSSpec for non-existant file?
      • From: Rosyna <email@hidden>
References: 
 >FSSpec for non-existant file? (From: Andre Lipinski <email@hidden>)

  • Prev by Date: Re: Find dialog
  • Next by Date: Notes on docs
  • Previous by thread: FSSpec for non-existant file?
  • Next by thread: Re: FSSpec for non-existant file?
  • Index(es):
    • Date
    • Thread