I would like to open a PDF within a Cocoa application. I tried the following to open the PDF using Preview.
[[NSWorkspace sharedWorkspace] openURL:[NSURL fileURLWithPath:@"filepath"]];
But I would like to open the PDF attached to a window, similar to Xcode’s Help window. How do you achieve this using PDFKit?
You can use PDFView for opening PDF files within your application.
http://developer.apple.com/library/mac/#documentation/GraphicsImaging/Conceptual/PDFKitGuide/PDFKit_Prog_Intro/PDFKit_Prog_Intro.html#//apple_ref/doc/uid/TP40001863-CH203-SW1