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

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:18:34 +0200

Hi David,

On Mon, 2 Sep, 2002, David Rehring <email@hidden> wrote:

>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].

Thanks, I'll try that. It actually sounds obvious, hopefully this is why. ;)


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.

References: 
 >Re: [OT] FSpDirCreate returning fnfErr on X, but not 9. (From: David Rehring <email@hidden>)

  • Prev by Date: socket over DO.
  • Next by Date: Re: TM character blows array out of water
  • Previous by thread: Re: [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