Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Thank you Lee for your quick reply ... but I think you did not get me .. I want something like this:

-(IBAction)openPDFAction:(id)sender{
// code for opening a .PDF file in PDF reader
}

I don't know which code to use :confused:
 
Let's say you have a fixed path:
Code:
struct FSRef myRef;
OSStatus myStatus = FSPathMakeRef("/my/path/to/thisPDF.pdf",&myRef,NULL);
//Check myStatus
myStatus = LSOpenFSRef(&myRef,NULL);
//Check myStatus

The NULL values are optional parameters that I didn't use to keep it simple. The one in FSPathMakeRef would be a Boolean * that would contain whether or not the path is a directory on return. The NULL in LSOpenFSRef would be a FSRef * that would contain the opening program if you needed to know on return.

-Lee
 
Just to clarify, are you asking how to open a .pdf file with the user's default application for .pdf's? or are you asking about how to implement PDFView and/or PDFKit into your app?
 
how to open a .pdf file with the user's default application for .pdf's
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.