• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Controlling NSTextView's ruler accessory view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Controlling NSTextView's ruler accessory view


  • Subject: Re: Controlling NSTextView's ruler accessory view
  • From: Douglas Davidson <email@hidden>
  • Date: Tue, 13 Jan 2004 11:46:36 -0800

On Jan 12, 2004, at 4: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
2) Can I install/display the ruler accessory view without instantiating an NSTextView?

The accessory view is actually supplied by the layout manager using rulerAccessoryViewForTextView:paragraphStyle:ruler:enabled:. With a little experimentation, you should be able to control it from there.

Douglas Davidson
_______________________________________________
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.

References: 
 >Controlling NSTextView's ruler accessory view (From: Chris Anderson <email@hidden>)

  • Prev by Date: Re: Spell-checking service
  • Next by Date: Setting a documents file type during save as=8 5
  • Previous by thread: Re: Controlling NSTextView's ruler accessory view
  • Next by thread: Re: Controlling NSTextView's ruler accessory view
  • Index(es):
    • Date
    • Thread