• 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
Preference file reading by using FindFolder()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Preference file reading by using FindFolder()


  • Subject: Preference file reading by using FindFolder()
  • From: anna Smith <email@hidden>
  • Date: Thu, 2 Jun 2005 17:10:22 +0530

Hi friends,

i need help for reading preference file.
I am porting project from mac OS 9 to Mac X , And my old preference file is in System/preference /preffile
in the preference folder and i want to read that preference file i am using FindFolder function but i am not able to open that preference file.

I have query in Mac OS 9 we had System folder and that have Preference folder where as in the mac OS X we have System folder which is having sub folder Library and that is having preferencePane folder.
i am confuse whether Find Folder auto matically find this folder file or i need to do something else
Please let me know if anyone can halp me out


 sample code
err = noErr; vref = 0; dir = 0L;
    resnum=CurResFile();
    result = TRUE;
    memset(dbcnP,0,sizeof(PinkDbCnTyp));
    err = FindFolder(kOnSystemDisk,kPreferencesFolderType,kCreateFolder,&vref,&dir);
    err = HOpenResFile ( vref,dir, (ConstStr255Param)dbSettingFileName, fsRdPerm );
    if(err == -1)
        result = err;
    else
        {
      }


Thanks
Anna

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Preference file reading by using FindFolder()
      • From: Daniel Jalkut <email@hidden>
  • Prev by Date: Re(2): Ethernet address format question - part 2
  • Next by Date: Mac OS X checks for filename length?
  • Previous by thread: Re(2): Ethernet address format question - part 2
  • Next by thread: Re: Preference file reading by using FindFolder()
  • Index(es):
    • Date
    • Thread