Hi,

I am a beginner with cocoa and am making an application where i want to display a PDF file in my app. window. I have subclassed PDFView to myPDFView and have attached a PDF view from interface builder to my window..... Now how do i associate the PDF document that i want to display with this view? I came across this 2 line code to do this...

myDoc = [[[PDFDocument alloc] initWithURL: (NSURL *) [ NSURL fileURLWithPath: (NSString *)"Users/raj/Desktop/ObjectiveC.pdf"]] autorelease];

[pdfView setDocument: myDoc];

but i cannot understand where to add this in my sub class....

can somebody please help?

THANKS!

_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to