mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 17:10:37 +00:00
Implement NSDocument autosaving.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27288 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d570c4cbb9
commit
a7d31f149d
5 changed files with 287 additions and 11 deletions
|
@ -32,6 +32,8 @@
|
|||
|
||||
#include <AppKit/NSDocumentController.h>
|
||||
|
||||
@class NSTimer;
|
||||
|
||||
@interface NSDocumentController (Private)
|
||||
- (NSArray *)_editorAndViewerTypesForClass:(Class)documentClass;
|
||||
- (NSArray *)_editorTypesForClass:(Class)fp12;
|
||||
|
@ -39,6 +41,10 @@
|
|||
- (NSString *)_nameForHumanReadableType: (NSString *)type;
|
||||
- (NSArray *)_displayNamesForTypes: (NSArray *)types;
|
||||
- (NSArray *)_displayNamesForClass: (Class)documentClass;
|
||||
- (NSString *)_autosaveDirectory: (BOOL)create;
|
||||
- (void)_autosaveDocuments: (NSTimer *)timer;
|
||||
- (BOOL)_reopenAutosavedDocuments;
|
||||
- (void)_recordAutosavedDocument: (NSDocument *)document;
|
||||
@end
|
||||
|
||||
|
||||
|
@ -47,6 +53,7 @@
|
|||
@interface NSDocument (Private)
|
||||
- (void)_removeWindowController:(NSWindowController *)controller;
|
||||
- (NSWindow *)_transferWindowOwnership;
|
||||
- (void)_removeAutosavedContentsFile;
|
||||
@end
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue