NSTextView - How to preset tabstops?
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 rule开发者_JAVA技巧r 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.
精彩评论