NSRulerView

  • Hi guys,

    I understand from the documentation that NSRulerView's scale is
    determined by the document view's bounds. Is there any way to
    override this? I asked a similar question on this list recently but
    from a different angle. I've got a custom view that's rendering a
    graph representing an HPGL document, and it does its own scaling
    rather than scaling the NSView to keep line widths the same when
    scaled. So the NSView will always be at a scale of 1, but I want the
    rulers to reflect a different scale depending on the scale factor of
    the graph. Surely this is doable?

    The only way I can think of is re-registering the units with a
    different scale each time we want to draw the view. Seems a bit silly
    to have to do that though.

    Thanks!
    Loukas
previous month september 2007 next month
MTWTFSS
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Go to today