Re: How to handle document scaling in an NSRulerView Client?
Re: How to handle document scaling in an NSRulerView Client?
- Subject: Re: How to handle document scaling in an NSRulerView Client?
- From: Dave Fernandes <email@hidden>
- Date: Sat, 13 Dec 2008 00:17:30 -0500
Not sure if I'm missing your point, but you can always call
registerUnitWithName again with the new conversion factor after
changing the view scale.
Dave
On Dec 12, 2008, at 11:33 PM, Carlos Eduardo Mello wrote:
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:
40utoronto.ca
This email sent to email@hidden
_______________________________________________
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