• 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: How to get the current classic Sytem folder path?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: How to get the current classic Sytem folder path? (From: Greg Robbins <email@hidden>)

  • Prev by Date: Programmatically taking a screenshot
  • Next by Date: Re: String encoding problem
  • Previous by thread: Re: How to get the current classic Sytem folder path?
  • Next by thread: Re: How to get the current classic Sytem folder path?
  • Index(es):
    • Date
    • Thread