Re: Controlling NSTextView's ruler accessory view
Re: Controlling NSTextView's ruler accessory view
- Subject: Re: Controlling NSTextView's ruler accessory view
- From: Scott Anguish <email@hidden>
- Date: Tue, 13 Jan 2004 02:46:40 -0500
On Jan 12, 2004, at 7:16 PM, Chris Anderson wrote:
My custom NSView sometimes makes an NSTextView subview. If the
superview is displaying rulers, NSTextView installs its horizontal
ruler accessory view the first time it gets instantiated. This
accessory view uses a lot of space and when it shoves everything else
down it's kind of distracting, so two questions:
1) How do I turn NSTextView's ruler accessory view on and off? and
You mean the ruler in general? You can determine if it's visible using
-isRulerVisible, which is inherited from NSText, and toggle it using
-toggleRuler:
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.