Re: [OT] FSpDirCreate returning fnfErr on X, but not 9.
Re: [OT] FSpDirCreate returning fnfErr on X, but not 9.
- Subject: Re: [OT] FSpDirCreate returning fnfErr on X, but not 9.
- From: David Rehring <email@hidden>
- Date: Mon, 02 Sep 2002 17:48:06 -0700
On 9/2/02 4:57 PM, Jens Bauer at email@hidden wrote:
>
To create the folder, I use FSMakeFSSpec followed by FSpDirCreate.
>
On Mac OS 9, this works fine, however on Mac OS X, the directory is not
>
created, and FSpDirCreate returns -43 (fnfErr).
>
>
err = FSMakeFSSpec(0, parID, name, &outFile);
>
if(noErr == err || fnfErr == err)
>
{
>
err = FSpDirCreate(&outFile, smSystemScript, &dirID);
>
(err is now fnfErr)
>
...
>
}
>
>
I get parID from a folder-chooser box in PowerPlant:
>
>
>
UNavServicesDialogs::LFileChooser chooser;
>
FSSpec fss;
>
>
if(chooser.AskChooseFolder(fss, mParID))
>
{
>
fss and mParID is valid and saved.
>
}
I would suggest setting the vRefNum to the value obtained from LFileChooser.
[ie, updating FSMakeFSSpec use a real vRefNum instead of 0].
Later,
--
David Rehring Psychos do not explode when light hits
Senior Software Engineer them, no matter how crazy they are...
Atimi Software, Inc.
www.atimi.com And totally insane guy!
_______________________________________________
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.