NSRulerView Centimeters [Solved]
NSRulerView Centimeters [Solved]
- Subject: NSRulerView Centimeters [Solved]
- From: David Blanton <email@hidden>
- Date: Tue, 28 Jul 2009 22:16:16 -0600
The NSRulerView and NSScrollView docs need to be read concurrently.
You can get the rulers from NSScrollView methods.
You set ruler attributes using NSRulerView methods.
Here is some code:
[_scrollView setHasHorizontalRuler:YES];
[_scrollView setHasVerticalRuler:YES];
[_scrollView setRulersVisible:YES];
[[_scrollView horizontalRulerView]
setMeasurementUnits:@"Centimeters"];
[[_scrollView verticalRulerView] setMeasurementUnits:@"Centimeters"];
-db
_______________________________________________
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