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

Re: NSTextView issue on 10.7 & 10.8 when compiling on 10.9


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

As a follow-up:

The build settings specify Base SDK Latest (10.9 on my main machine) and Deployment Target 10.7. Changing the Base SDK to 10.8 doesn’t solve the issue.

-António

On 02 Dec 2013, at 07:43, Antonio Nunes <email@hidden> wrote:

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.)


 _______________________________________________
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

References: 
 >NSTextView issue on 10.7 & 10.8 when compiling on 10.9 (From: Antonio Nunes <email@hidden>)

  • Prev by Date: NSTextView issue on 10.7 & 10.8 when compiling on 10.9
  • Next by Date: Re: Strange differences between unstripped binaries
  • Previous by thread: NSTextView issue on 10.7 & 10.8 when compiling on 10.9
  • Next by thread: Test failure state is highly buggy in Xcode 5
  • Index(es):
    • Date
    • Thread