jessegrosjean / bdocuments

This URL has Read+Write access

bdocuments / BDocuments.h
100644 50 lines (35 sloc) 1.693 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
44
45
46
47
48
49
50
//
// BDocuments.h
// BDocuments
//
// Created by Jesse Grosjean on 9/7/07.
// Copyright 2008 __MyCompanyName__. All rights reserved.
//
 
#import <Cocoa/Cocoa.h>
#import <Blocks/Blocks.h>
#import "BDocumentController.h"
#import "BDocument.h"
#import "BDocumentWindowController.h"
 
 
@interface NSApplication (BDocumentsAdditions)
 
@property(readonly) id currentDocument;
@property(readonly) id currentDocumentWindowController;
 
@end
 
 
@interface NSFileManager (BDocumentsAdditions)
 
+ (NSArray*)allKeysAtPath:(NSString*)path traverseLink:(BOOL)travLnk;
+ (void)setData:(NSData*)data forKey:(NSString*)key atPath:(NSString*)path traverseLink:(BOOL)travLnk;
+ (void)setObject:(id)obj forKey:(NSString*)key atPath:(NSString*)path traverseLink:(BOOL)travLnk;
+ (void)setString:(NSString*)str forKey:(NSString*)key atPath:(NSString*)path traverseLink:(BOOL)travLnk;
+ (NSMutableData*)dataForKey:(NSString*)key atPath:(NSString*)path traverseLink:(BOOL)travLnk;
+ (id)objectForKey:(NSString*)key atPath:(NSString*)path traverseLink:(BOOL)travLnk;
+ (id)stringForKey:(NSString*)key atPath:(NSString*)path traverseLink:(BOOL)travLnk;
 
@property(readonly) NSString *processesCachesFolder;
@property(readonly) NSString *processesApplicationSupportFolder;
- (NSString *)findSystemFolderType:(NSInteger)folderType forDomain:(NSInteger)domain;
- (BOOL)createDirectoriesForPath:(NSString *)path;
 
@end
 
@interface NSString (BDocumentsAdditions)
 
- (NSComparisonResult)naturalCompare:(NSString *)aString;
- (NSString *)stringByURLEncodingStringParameter;
 
@end
 
APPKIT_EXTERN NSString *BDocumentControllerDocumentAddedNotification;
APPKIT_EXTERN NSString *BDocumentControllerDocumentRemovedNotification;