NSRulerView
NSRulerView
- Subject: NSRulerView
- From: Loukas Kalenderidis <email@hidden>
- Date: Mon, 17 Sep 2007 16:32:32 +1000
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
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden