NSTextView scaled using scaleUnitSquareToSize - alignment issue
NSTextView scaled using scaleUnitSquareToSize - alignment issue
- Subject: NSTextView scaled using scaleUnitSquareToSize - alignment issue
- From: Kenneth Baxter <email@hidden>
- Date: Wed, 09 Mar 2011 16:30:56 +0000 (GMT)
HI, I have a subclass of NSTextView that I am showing on a window. I sometimes want to display it zoomed in, so have been using scaleUnitSquareToSize:, and this works fine so long as the text is left aligned.
When I am zoomed in, and using either center alignment or right alignment the text appears too far to the right in the text field. The frame of the field is showing at the correct size and location - it's just that the text is positioned incorrectly within the frame
Am I doing something wrong here? Is there something I can do to get it to position correctly?
Thanks
Ken_______________________________________________
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