문제

I am trying to change the preset tabstops in an NSTextView. I found an old post form 2002 which says it is possible to do this from within Interface Builder by showing the ruler of the NSTextView and then editing the tabs on it:

http://www.cocoabuilder.com/archive/cocoa/14409-tabs-in-nstextview.html Briefly: "Double click the NSTextView and switch on the ruler using the Fromat->Ruler->Show Menu."

This does not seem to work in the current Interface Builder. I cannot even find the described menu. Is this option no longer available in Xcode/IB 3.2.5?

Cheers, Gregor

도움이 되었습니까?

해결책

I don't believe the option is available any longer. The only one that's there is the ability to toggle whether the text view can use the ruler. I'd just use an outlet to it to send it a [myTextView setRulerVisible:YES]; on -awakeFromNib and be done with it.

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