Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Preference file reading by using FindFolder()



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:
http://lists.apple.com/mailman/options/macnetworkprog/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.