home *** CD-ROM | disk | FTP | other *** search
/ OpenStep (Enterprise) / OpenStepENTCD.toast / OEDEV / DEV.Z / NSPPL.h < prev    next >
Text File  |  1996-09-11  |  1KB  |  49 lines

  1. /*    NSPPL.h
  2.     Persistent Property List
  3.     Copyright 1994-1996, NeXT Software, Inc.  All rights reserved.
  4. */
  5.  
  6. #if !defined(STRICT_OPENSTEP)
  7.  
  8. #import <Foundation/NSObject.h>
  9. #import <Foundation/NSDate.h>
  10.  
  11. @class NSData, NSDictionary, NSMutableDictionary, NSString;
  12. @class _NSPPLCache, _NSPPLMutables, _NSPPLStore;
  13.  
  14. FOUNDATION_EXPORT NSString *NSPPLDidBecomeDirtyNotification;
  15. FOUNDATION_EXPORT NSString *NSPPLDidSaveNotification;
  16.  
  17. @interface NSPPL : NSObject {
  18. @private
  19.     _NSPPLStore        *store;
  20.     _NSPPLMutables    *mutables;
  21.     _NSPPLCache        *cache;
  22.     unsigned        rootHandle;
  23.     unsigned        version;
  24.     BOOL        readOnly;
  25.     BOOL        isDirty;
  26.     void        *reserved;
  27. }
  28.  
  29. + (id)pplWithPath:(NSString *)path create:(BOOL)create readOnly:(BOOL)readOnly;
  30. - (id)initWithPath:(NSString *)path create:(BOOL)create readOnly:(BOOL)readOnly;
  31.  
  32. + (id)pplWithPath:(NSString *)path fromPPLData:(NSData *)pplData readOnly:(BOOL)readOnly;
  33. - (id)initWithPath:(NSString *)path fromPPLData:(NSData *)pplData readOnly:(BOOL)readOnly;
  34.  
  35. + (NSDictionary *)propertyListWithPPLData:(NSData *)pplData;
  36. - (NSData *)contentsAsData;
  37.  
  38. - (NSMutableDictionary *)rootDictionary;
  39.  
  40. - (void)detachFromFile;
  41. - (void)flush;
  42. - (void)pushChangesToDisk;
  43. - (void)save;
  44. - (void)setCacheHalfLife:(NSTimeInterval)halfLife;
  45.  
  46. @end
  47.  
  48. #endif /* !STRICT_OPENSTEP */
  49.