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

[OT] FSpDirCreate returning fnfErr on X, but not 9.


  • Subject: [OT] FSpDirCreate returning fnfErr on X, but not 9.
  • From: Jens Bauer <email@hidden>
  • Date: Tue, 3 Sep 2002 01:57:54 +0200

Hi all,

This is a bit off-topic, as it's in fact Carbon, but I'm not on the
Carbon list. :/

If anyone knows, I'd be very pleased if you can tell me, as I'm in a hurry.
I have a program that creates a folder, inside this folder it writes some
files.

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

Have anyone noticed this before ?
I'd also like to mention that if you name a volume "Apps" from Mac OS 9,
it shows up as an application in Mac OS X 10.1.5, I haven't reported this
yet. Can anyone else confirm this ?


Love,
Jens

--
I encourage you to go and see the new iMac, it's wonderful! http://
www.apple.com/

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

  • Follow-Ups:
    • Re: [OT] FSpDirCreate returning fnfErr on X, but not 9.
      • From: David Rehring <email@hidden>
  • Prev by Date: Re: cString deprecated!
  • Next by Date: TM character blows array out of water
  • Previous by thread: framework warnings
  • Next by thread: Re: [OT] FSpDirCreate returning fnfErr on X, but not 9.
  • Index(es):
    • Date
    • Thread