CatNiP prefinal
Sähköinen nuottikirja, HY-TKTKL-OHTUPROJ KESÄ11
/Users/awniemel/Notepad-SVN/svn/trunk/CatNiP/CatNiP/UIDocument.m
Go to the documentation of this file.
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 #import "UIDocument.h"
00021 
00022 @implementation UIDocument
00023 
00024 @synthesize size;
00025 @synthesize numberOfPages;
00026 
00034 + (UIDocument *)documentWithContentsOfFile:(NSString *)path
00035 {
00036     return [[[self alloc] initWithContentsOfFile:path] autorelease];
00037 }
00038 
00046 + (UIDocument *)documentWithData:(NSData *)data
00047 {
00048     return [[[self alloc] initWithData:data] autorelease];
00049 }
00050 
00058 - (id)initWithContentsOfFile:(NSString *)path
00059 {
00060     @throw [NSException exceptionWithName:NSInternalInconsistencyException
00061                                    reason:[NSString stringWithFormat:@"You must override %@ in a subclass", NSStringFromSelector(_cmd)]
00062                                  userInfo:nil];    
00063 }
00064 
00071 - (id)initWithData:(NSData *)data
00072 {
00073     @throw [NSException exceptionWithName:NSInternalInconsistencyException
00074                                    reason:[NSString stringWithFormat:@"You must override %@ in a subclass", NSStringFromSelector(_cmd)]
00075                                  userInfo:nil];    
00076 }
00077 
00085 - (UIImage *)getImageOfPage:(int)pageNumber
00086 {
00087     @throw [NSException exceptionWithName:NSInternalInconsistencyException
00088                                    reason:[NSString stringWithFormat:@"You must override %@ in a subclass", NSStringFromSelector(_cmd)]
00089                                  userInfo:nil];    
00090 }
00091 
00098 - (CGSize)getSizeOfPage:(int)pageNumber
00099 {
00100     @throw [NSException exceptionWithName:NSInternalInconsistencyException
00101                                    reason:[NSString stringWithFormat:@"You must override %@ in a subclass", NSStringFromSelector(_cmd)]
00102                                  userInfo:nil];    
00103 }
00104 
00105 @end
 All Classes Files Functions Variables Enumerations Enumerator Properties Defines