forked from rsms/kod
-
Notifications
You must be signed in to change notification settings - Fork 0
/
KURLHandler.mm
37 lines (24 loc) · 846 Bytes
/
KURLHandler.mm
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
// Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved.
// Use of this source code is governed by a MIT-style license that can be
// found in the LICENSE file.
#import "common.h"
#import "KURLHandler.h"
@implementation KURLHandler
+ (KURLHandler*)handler {
return [[self new] autorelease];
}
- (BOOL)canReadURL:(NSURL*)url { return NO; }
- (BOOL)canWriteURL:(NSURL*)url { return NO; }
- (void)readURL:(NSURL*)url ofType:(NSString*)typeName inTab:(KDocument*)tab{
NOTIMPLEMENTED();
}
- (void)writeData:(NSData*)data
ofType:(NSString*)typeName
toURL:(NSURL*)url
inTab:(KDocument*)tab
forSaveOperation:(NSSaveOperationType)saveOperation
originalURL:(NSURL*)absoluteOriginalContentsURL
callback:(void(^)(NSError *err, NSDate *mtime))callback {
NOTIMPLEMENTED();
}
@end