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.
ユーザーが[印刷]ボタンをタップしたときにカスタムアクションを実行することはできますか?たとえば、印刷する前に[認証]ダイアログボックスを表示できますか?
私はMacプリンター開発の初心者です。どんな助けでも大歓迎です。ありがとう!
PDEで、次の方法で印刷アクションをインターセプトしました。
- (void)shouldPrint
そのメソッドでYESまたはNOを返す前に、NSWindowをモーダルに表示しました。 (NSWindowがモーダル表示されると、「shouldPrint」メソッドの実行が停止します。)