Re: FSSpec to a non-existent file
Re: FSSpec to a non-existent file
- Subject: Re: FSSpec to a non-existent file
- From: Tomas Zahradnicky <email@hidden>
- Date: Wed, 11 Jun 2003 23:28:55 +0200
List,
Environment: 10.2.x Cocoa application
I'm trying to implement an application that uses StuffIt SDK 6.5.1.
The API that creates an archive requires a FSSpec to a new file that does
not exist yet.
I have scoured the documentation, but there does not seem to be a way of
getting a FSSpec from path that does not exist yet.
I have tried using NSFileManager to create a file first, but stuffIt
changes the name of the file if that file already exists.
Any ideas on how to get a FSSpec to a file that does not yet exist?
Thank you,
Yury Peskin
Hello Yury,
use FSMakeFSSpec to create FSSpec. You should know at least the
parent directory of file being created and only the name is
nonexistent. The mentioned function will return fnfErr (-43) error
but valid FSSpec. This is normal behavior.
-Tomas
_______________________________________________
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.