[OT] FSpDirCreate returning fnfErr on X, but not 9.
[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.