-1
콘솔 로그를 추가 할 NSTextView가 있습니다. 스크롤 뷰를 사용하여이 UI를 XIB 파일에 구현했습니다. 내 응용 프로그램이 텍스트보기에 콘솔 로그를 추가 할 때 스크롤 막대를 자동으로 텍스트보기 끝으로 이동 시키길 원합니다. XIB 편집기에서 속성을 찾을 수 없습니다. 어떤 생각이라도 이걸 어떻게 얻을 수 있니?NSTextView의 끝까지 자동 스크롤
@property(nonatomic, strong) IBOutlet NSTextView *logTextView;
[[self.logTextView textStorage] beginEditing];
[[[self.logTextView textStorage] mutableString] appendString:iData];
[[[self.logTextView textStorage] mutableString] appendString:@"\n"];
[[self.logTextView textStorage] endEditing];