Initial Cocoa (Objective-C) API.
2 // MYVersionDictionary.h
5 // Created by Jens Alfke on 9/21/09.
6 // Copyright 2009 Jens Alfke. All rights reserved.
9 #import <Foundation/NSDictionary.h>
13 class OverlayDictionary;
14 class VersionDictionary;
19 /** A persistent NSDictionary embedded in a memory-mapped file,
20 representing one complete version of a MYOttoman dictionary. */
21 @interface MYVersionDictionary : NSDictionary
24 const Mooseyard::VersionDictionary *_dict;
30 /** The generation number. The first version in a new file is zero. */
31 @property (readonly) int generation;
33 /** The time at which this version was written to the file. */
34 @property (readonly) NSDate *dateCreated;
36 /** The previous version, before this one was saved. */
37 @property (readonly) MYVersionDictionary *previousVersion;
39 /** Is this the latest version in the file? */
40 @property (readonly) BOOL isLatestVersion;
46 @interface MYCurrentVersionDictionary : NSMutableDictionary
49 Mooseyard::OverlayDictionary *_dict;