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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to