home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / System / Goodies / CPreferences.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-11-27  |  519 b   |  17 lines  |  [TEXT/KAHL]

  1. /*    CPreferences - read and save preferences in a (resource) file in a
  2.                    preferences folder in the System Folder. */
  3.  
  4. #define _H_CPreferences
  5.  
  6. struct CPreferences: CObject {
  7.     int itsFileRefNum;
  8.  
  9.     NEW            void    IPreferences(void);
  10.     PRIVATE        Handle    Find(ResType type, int ID);
  11.     NEW            Handle    Get(ResType type, int ID);
  12.                             /*    Get() returns NULL if not found. */
  13.     NEW            void    Put(Handle han, ResType type, int ID, StringPtr name);
  14.     OVERRIDE    void    Dispose(void);
  15.                             /*    Dispose() writes back and closes the file. */
  16. };
  17.