I have a PDFV开发者_C百科iew object in one of my windows and wondering if there's anything special I need to do in order for the hyperlinks to work.
The same pdf files have working hyperlinks when opened in other apps (like skim, preview, etc).
Any ideas?
Add a delegate to your PDFView that responds to this selector
- (void)PDFViewWillClickOnLink:(PDFView *)sender withURL:(NSURL *)url
{
[[NSWorkspace sharedWorkspace] openURL:url];
}
Turned out that I simply had to enable this in my derived class: [super mouseDown:theEvent];
精彩评论