Re(2): [OT] FSpDirCreate returning fnfErr on X, but not 9.
Re(2): [OT] FSpDirCreate returning fnfErr on X, but not 9.
- Subject: Re(2): [OT] FSpDirCreate returning fnfErr on X, but not 9.
- From: Jens Bauer <email@hidden>
- Date: Tue, 3 Sep 2002 03:33:08 +0200
Hi David,
On Mon, 2 Sep, 2002, David Rehring <email@hidden> wrote:
>
> 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].
Indeed, this helped! Thanks David, I owe you one (no, make that 3!!!)
Love,
Jens
--
Jens Bauer, Faster Software.
-Let's make the World better, shall we ?
_______________________________________________
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.