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.
NSTextViewでテキストが変更された場合に、イベントをトリガーしたいと思います。NSTextViewから直接トリガーする方法はありますか、またはNSTextViewのカスタムクラスを作成する必要がありますか?
- (void)textDidChange:(NSNotification *)notification { ----do stuff here---- NSLog(@"text typed"); }
メソッドをコードに追加します...十分です