-
Notifications
You must be signed in to change notification settings - Fork 0
/
FlipDocument.m
46 lines (33 loc) · 1.78 KB
/
FlipDocument.m
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
//
// FlipDocument.m
// Kineo
//
// Created by Ben Yellin on 3/26/11.
// Copyright 2011 Been Yelling. All rights reserved.
//
/*#import "FlipDocument.h"
#import "FlipSeries.h"
#import "PrintController.h"
@interface FlipDocument (Private)
- (void)playUpdate:(NSTimer *)timer;
@end
@implementation FlipDocument
- (NSString *)windowNibName {
// Implement this to return a nib to load OR implement -makeWindowControllers to manually create your controllers.
return @"FlipDocument";
}
- (NSData *)dataOfType:(NSString *)typeName error:(NSError **)outError
{
// Insert code here to write your document to data of the specified type. If the given outError != NULL, ensure that you set *outError when returning nil.
// You can also choose to override -fileWrapperOfType:error:, -writeToURL:ofType:error:, or -writeToURL:ofType:forSaveOperation:originalContentsURL:error: instead.
// For applications targeted for Panther or earlier systems, you should use the deprecated API -dataRepresentationOfType:. In this case you can also choose to override -fileWrapperRepresentationOfType: or -writeToFile:ofType: instead.
return nil;
}
- (BOOL)readFromData:(NSData *)data ofType:(NSString *)typeName error:(NSError **)outError
{
// Insert code here to read your document from the given data of the specified type. If the given outError != NULL, ensure that you set *outError when returning NO.
// You can also choose to override -readFromFileWrapper:ofType:error: or -readFromURL:ofType:error: instead.
// For applications targeted for Panther or earlier systems, you should use the deprecated API -loadDataRepresentation:ofType. In this case you can also choose to override -readFromFile:ofType: or -loadFileWrapperRepresentation:ofType: instead.
return YES;
}
@end*/