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 OS X で一致が強調表示されると(「検索」アクションを使用する場合)、特定の金色の丸いボックスが一致の周りに一瞬 (アニメーションで) 描画され、その後消えます。
プログラムでまったく同じ機能をトリガーし、特定の範囲を強調表示する方法はありNSTextViewますか?
NSTextView
すぐに使えるようなものがあるに違いないと思いますが、絶対に見つけられません...
私はそれがこれだと思った:
- (void)showFindIndicatorForRange:(NSRange)charRange
NSTextView の場合 (ドキュメントはこちら)。