• 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 issue on 10.7 & 10.8 when compiling on 10.9
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextView issue on 10.7 & 10.8 when compiling on 10.9


  • Subject: NSTextView issue on 10.7 & 10.8 when compiling on 10.9
  • From: Antonio Nunes <email@hidden>
  • Date: Mon, 02 Dec 2013 07:43:29 +0000

Hi,

When I compile my app on 10.9 with Xcode 5.0.2 it works fine on 10.9, but I get issues when running that build on 10.7 and 1.08. I have an editor, which is a subclass of NSTextView. Since the canvas (= view) where it appears can be scaled freely, I used to have the following code to achieve a correct display of the text view’s contents during editing:

        editingStartScaleFactor = view.scaleFactor;
        [editor AN_setScale:NSMakeSize(editingStartScaleFactor, editingStartScaleFactor)];

On 10.9 though, this results in the contents not being the correct size unless the canvas is scaled at 100%. So I added a conditional to turn setting the scale factor off on 10.9:

    if ( ! [Utilities isMinimumSystemVersionMajor:10 minor:9 bugFix:0] ) {
        editingStartScaleFactor = view.scaleFactor;
        [editor AN_setScale:NSMakeSize(editingStartScaleFactor, editingStartScaleFactor)];

    }

This fixes the issue on 10.9. However, when I run my builds on an older machine running 10.8 (or 10.7 for that matter), then the text view misbehaves (pixelated enlarged display, among other things). After installing Xcode 5.2 on the older machine, and compiling the exact same source on it, on 10.8, then when run the text field behaves correctly.

Has anyone run into similar issues, or have any idea, what could be the matter and/or how to resolve the issue? (Building public releases on 10.8 is not an option.)

-António
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSTextView issue on 10.7 & 10.8 when compiling on 10.9
      • From: Antonio Nunes <email@hidden>
  • Prev by Date: note on debugging signing problems
  • Next by Date: Re: NSTextView issue on 10.7 & 10.8 when compiling on 10.9
  • Previous by thread: note on debugging signing problems
  • Next by thread: Re: NSTextView issue on 10.7 & 10.8 when compiling on 10.9
  • Index(es):
    • Date
    • Thread