• 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: [OT] FSpDirCreate returning fnfErr on X, but not 9.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re(2): [OT] FSpDirCreate returning fnfErr on X, but not 9.
      • From: Jens Bauer <email@hidden>
    • Re(2): [OT] FSpDirCreate returning fnfErr on X, but not 9.
      • From: Jens Bauer <email@hidden>
References: 
 >[OT] FSpDirCreate returning fnfErr on X, but not 9. (From: Jens Bauer <email@hidden>)

  • Prev by Date: Variable Sized Subview
  • Next by Date: socket over DO.
  • Previous by thread: [OT] FSpDirCreate returning fnfErr on X, but not 9.
  • Next by thread: Re(2): [OT] FSpDirCreate returning fnfErr on X, but not 9.
  • Index(es):
    • Date
    • Thread