jessegrosjean / bdocuments

This URL has Read+Write access

bdocuments / BDocumentController.h
100644 43 lines (30 sloc) 1.031 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//
// BDocumentController.h
// BDocuments
//
// Created by Jesse Grosjean on 9/7/07.
// Copyright 2007 __MyCompanyName__. All rights reserved.
//
 
#import <Cocoa/Cocoa.h>
#import "BDocuments.h"
#import "BUserInterface.h"
 
 
@protocol BDocumentControllerDelegate <NSObject>
@property(readonly) NSString *defaultType;
@end
 
@interface BDocumentController : NSDocumentController {
NSMutableArray *documentTypeDeclarations;
NSMutableDictionary *documentTypeDeclarationsToPlugins;
BOOL applicationMayBeTerminating;
}
 
#pragma mark Class Methods
 
+ (id)sharedInstance;
 
#pragma mark Sync
 
- (IBAction)sync:(id)sender;
 
#pragma mark Loading Document Workspace
 
- (void)removeRecentDocumentURL:(NSURL *)removedURL;
- (BOOL)applicationShouldOpenUntitledFile:(NSApplication *)sender;
 
@end
 
APPKIT_EXTERN NSString *BDocumentsAutosavingDelayKey;
APPKIT_EXTERN NSString *BDocumentsLastDocumentWorkspaceKey;
APPKIT_EXTERN NSString *BDocumentsReopenLastDocumentWorkspaceKey;
APPKIT_EXTERN NSString *BAutomaticallySaveDocumentsWhenQuiting;