-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I have a scroll view containing a view with plotted data (previously
mentioned in my emails regarding plotting with NSBezierPath).

I am considering using NSRulerViews as axis scales.  I was able to
configure the rulers to have the appropriate point-to-unit conversion
factors, etc., but the one obstacle I have encountered is that the
desired scales increment in opposite directions from usual (i.e.
increasing from right to left and top to bottom).

By overriding -isFlipped in an NSRulerView subclass and then calling
- -setOriginOffset: appropriately I was able to get the desired behavior
in the vertical ruler (though it feels like a kludge).

However, this does not seem to have any effect in the horizontal
dimension (which would be consistent with the documentation, which
rather cryptically notes that horizontal rulers always assume a flipped
coordinate system).

Is there a way to achieve a right-to-left horizontal ruler?  Or is this
a sign that I am abusing NSRulerView beyond its intended use and I
should consequently draw my own axis scales?

Googling for terms like "flipped nsrulerview" and "mirrored nsrulerview"
simply led me back to the NSRulerView documentation, for which I think I
have read all the pertinent portions.

Thanks.

- -- 
Conrad Shultz

Synthetiq Solutions
www.synthetiqsolutions.com


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFOQ1uuaOlrz5+0JdURAh1fAJ9N69KgF0JxRTpYaPSa6sxjbtum3QCcD/Dh
+FYDd+Enz0KOX6fCbvt6nU0=
=ECfh
-----END PGP SIGNATURE-----
_______________________________________________

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