Re: How to get the current classic Sytem folder path?
Re: How to get the current classic Sytem folder path?
- Subject: Re: How to get the current classic Sytem folder path?
- From: Tackel <email@hidden>
- Date: Fri, 07 Mar 2003 19:17:12 +0100
Hi,
It works beautifully!!
Many thanks,
Jesus.
>
From: Greg Robbins <email@hidden>
>
Date: Thu, 6 Mar 2003 19:16:23 -0800
>
To: email@hidden
>
Subject: Re: How to get the current classic Sytem folder path?
>
>
FSRef systemFSRef;
>
>
OSErr err = FSFindFolder(kClassicDomain, kSystemFolderType, kDontCreateFolder,
>
&systemFSRef);
>
if (err == noErr)
>
{
>
HFSUniStr255 hfsUniName;
>
>
err = FSGetCatalogInfo(&systemFSRef, kFSCatInfoNone, NULL, &hfsUniName, NULL,
>
NULL);
>
if (err == noErr)
>
{
>
NSString *name = [NSString stringWithCharacters:hfsUniName.unicode
>
length:hfsUniName.length];
>
NSLog(name);
>
}
>
}
_______________________________________________
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.