home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / Demos / Tools / AppMaker / Examples / pre-built AMReminder / Procedural / AMReminderData.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-04  |  1.5 KB  |  43 lines  |  [TEXT/MMCC]

  1. /* AMReminderData.h -- application-specific data management */
  2. /* Created 01/01/95 12:01 PM by AppMaker */
  3.  
  4. /* Define the creator type and file type for your application. */
  5.  
  6. #define kSignature        'XXXX'
  7. #define kFileType        'TEXT'
  8.  
  9. /* Define any appropriate data structures for your application. */
  10. /* Add any needed fields to Global's WinInfoRec so that each window */
  11. /* can have its own set of data. Your functions will use "cur->" */
  12. /* to access the data. Here, in the interface section, you should */
  13. /* define only those types which are intended to be visible to */
  14. /* modules outside this one. Later, in the implementation section, */
  15. /* you can define additional "private" data structures. */
  16.  
  17. typedef struct {
  18.         short        data;
  19.     } YourStuff;
  20.  
  21. /*----------*/
  22. /* Open, Close, Read, Write, Init, and Dispose are called by the */
  23. /* AppMaker-generated FileM module to do application-specific file accessing. */
  24.  
  25. Boolean    OpenAppFile        (short        vRefNum,
  26.                          Str255        fName,
  27.                          short        *fRefNum);
  28. void    CloseAppFile    (short        fRefNum);
  29. void    ReadAppFile        (short        fRefNum);
  30. void    WriteAppFile    (short        fRefNum);
  31. void    InitAppData        (void);
  32. void    DisposeAppData    (void);
  33.  
  34. /* These functions are for accessing your data as logical chunks. */
  35. /* They are just models for your own accessor functions; */
  36. /* they aren't called by any AppMaker-generated code. */
  37. /* Replace them with whatever is suitable for your application. */
  38.  
  39. void    AddStuff        (YourStuff        *stuff);
  40. void    DeleteStuff        (void);
  41. Boolean    GetStuff        (void);
  42. void    PutStuff        (void);
  43.