home *** CD-ROM | disk | FTP | other *** search
-
- #import <appkit/appkit.h>
-
- @interface Document:Object
- {
- id window;
- const char *documentName, *documentPath;
- int tag;
- unsigned long createTime, lastModifyTime;
- }
-
-
- /* ==== init section ==== */
- - init;
- - awakeFromNib;
-
- /* ==== access to instance variables ==== */
- - window;
- - (int)tag;
- - setTag:(int)aTag;
- - (const char *)documentName;
- - (const char *)documentPath;
- - setDocumentName:(const char *)aName;
- - setDocumentPath:(const char *)aPath;
- - getInspectorData:(const char **)nm :(const char **)pth :(int *)t
- :(unsigned long *)ct :(unsigned long *)lt;
-
- /* ==== file handling ==== */
- - setupNewDoc:(const char *)newPath;
- - (BOOL)openDocFile:(const char *)aPath;
- - saveDocument;
- - saveDocumentAs:(const char *)aPath;
- - saveDocumentTo:(const char *)aPath;
-
- /* ==== Window delegate methods ==== */
- - windowDidBecomeKey:sender;
- - windowWillClose:sender;
- - windowDidUpdate:sender;
- - windowDidResize:sender;
-
- /* ==== Edit methods ==== */
-
- - delete:sender;
- - selectAll:sender;
-
-
- - free;
- @end
-