문제

I have a scroll view with text views. How do I find which text view is currently selected?

The delegate methods in NSTextDelegate only see to work once you start editing not when it's first selected.

도움이 되었습니까?

해결책

An NSTextView needs to be the first responder to be selected. You could override

-(void)becomeFirstResponder;

throw a notification with an id, to find out which NSTextView was selected.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top