// // AppController.m // PDFKit // // Created by Dr. H. Nikolaus Schaller on 11.11.05. // Copyright 2005 __MyCompanyName__. All rights reserved. // #import "AppController.h" #import // imports PDFKit int main(int argc, const char *argv[]) { return NSApplicationMain(argc, argv); } @implementation AppController - (void) awakeFromNib; { [self load:nil]; } - (IBAction) load:(id) Sender; { PDFDocument *doc; unsigned int i, cnt; doc=[[PDFDocument alloc] initWithURL:[NSURL URLWithString:@"file://localhost/Volumes/Data/hns/Documents/Projects/QuantumSTEP/System/Sources/PrivateFrameworks/PDFKit/Samples/Abschleppkran.pdf"]]; NSLog(@"doc=%@", doc); cnt=[doc pageCount]; for(i=0; i