• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSTextView scaled using scaleUnitSquareToSize - alignment issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Outlets Not Connected In awakeFromNib
  • Next by Date: Re: Assertion failure in -[MPMoviePlayerControllerNew _moviePlayerDidBecomeActiveNotification:]
  • Previous by thread: [MEET] CocoaHeads-NYC this Thursday -- please RSVP ASAP
  • Next by thread: get a dictionary out of an array of dictionaries by a criterion
  • Index(es):
    • Date
    • Thread