Cannot get PDF document show up in PDFView
Cannot get PDF document show up in PDFView
- Subject: Cannot get PDF document show up in PDFView
- From: Rajeshwari Iyer <email@hidden>
- Date: Tue, 15 Apr 2008 12:57:52 +0100
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@hidden)
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:
This email sent to email@hidden