• 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
NSRulerView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Color well does not always update
  • Next by Date: Sharing a view between NSWindow instances
  • Previous by thread: Re: Color well does not always update
  • Next by thread: Sharing a view between NSWindow instances
  • Index(es):
    • Date
    • Thread