How to handle document scaling in an NSRulerView Client?
How to handle document scaling in an NSRulerView Client?
- Subject: How to handle document scaling in an NSRulerView Client?
- From: Carlos Eduardo Mello <email@hidden>
- Date: Sat, 13 Dec 2008 02:33:48 -0200
Hi Everyone,
my app has a view inside a scroll view with a horizontal ruler. When
setting up the ruler I do the following:
1. call "setHasHorizontalRuler"
2. register my custom measurement unit with +
"registerUnitWithName..." and select that unit in the ruler.
3. then I call "setRulersVisible"
Now that part is OK, but when I need to rescale the document/client
view, how can I make the ruler follow the changes.
I've been throught the reference docs and guides about rulers but
found nothing related to rescaling the client. My only idea would be
to unregister the custom unit and register a new one with the correct
pixel/points ratio, then set the ruler to that new unit. But I
couldn't find a way to do that...Do I need to through the original
ruler away and create/setup a new one?
If anyone would be kind enough to throw some light into this I wouldd
really appreciate it.
Carlos.
_______________________________________________
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