Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ウィンドウの1つにPDFViewオブジェクトがあり、ハイパーリンクを機能させるために何か特別なことをする必要があるかどうか疑問に思っています。
同じPDFファイルを他のアプリ(スキム、プレビューなど)で開くと、ハイパーリンクが機能します。
何か案は?
このセレクターに応答するデリゲートを PDFView に追加します
- (void)PDFViewWillClickOnLink:(PDFView *)sender withURL:(NSURL *)url { [[NSWorkspace sharedWorkspace] openURL:url]; }
派生クラスでこれを有効にする必要があることがわかりました。[supermouseDown:theEvent];