Nsview not updating

Retina support can add a new dimension to this headache when you’re dealing with pixel coordinates.

Say you have a flipped NSView with an origin of 0,0 and dimensions of 1440 x 900 (e.g it covers the entire Retina screen in points.) Y coordinates on the screen can range in value from 0.0 to 899.5.

nsview not updating-77

To deal with the first problem, I used an NSEvent category that clamps events so the arrow keys can home in on the destination pixel.

Yes, kids, that’s what we call a painful fricken’ hack.

The next big headache was caused because you can’t set a window’s frame using non-integral points. The best example is with the Ruler tool: the origin of the ruler can be positioned to both even and odd pixels on screen.

Here the change file name action will occur, the part of the window will "unfreeze" and the highlighted filename will appear and be changeable. I should point out that this is currently occurring on a brand new macbook pro with 10.9.4 installed about 2 days ago.

I used the migration assistant to copy data from my old macbook to this one.

Leave a Reply

  1. Discreet online sex chat no sign up 22-Dec-2020 20:48

    Now that you’ve got an outline or a template in place, it’s time to fill it in.

  2. is kevin jonas dating anyone 21-Mar-2020 00:11

    The best way, however is to learn to pickup women online.

  3. adultdatingcentral com 28-Jun-2020 11:20

    It doesn’t take a razor sharp wit, but it still shows off your creativity.

  4. Free online sex chats uk no email 04-Jan-2021 12:02

    When people search for “sex apps,” they aren’t always looking for the same thing.