• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Cannot get PDF document show up in PDFView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Cannot get PDF document show up in PDFView
      • From: "Mike R. Manzano" <email@hidden>
  • Prev by Date: Capture mouse events globally
  • Next by Date: [ANN] Port mapping/forwarding framework (MIT license)
  • Previous by thread: Re: Capture mouse events globally
  • Next by thread: Re: Cannot get PDF document show up in PDFView
  • Index(es):
    • Date
    • Thread