Coder Social home page Coder Social logo

feature request: support OS X 10.6 about ui HOT 3 CLOSED

andlabs avatar andlabs commented on July 4, 2024
feature request: support OS X 10.6

from ui.

Comments (3)

andlabs avatar andlabs commented on July 4, 2024

Unfortunately I tried this already and it didn't work out.

There are several features of 10.7 that I now rely on already, namely alignment rects and baseline heights. I will later add NSPopover as well (see issue #36).

Furthermore, an error in Apple's header files means using the feature availability macros (MAC_OS_X_VERSION_MIN_REQUIRED/MAX_ALLOWED) to specify 10.6 makes including AppKit/NSApplication.h impossible. I needed to use a bad hack to bypass that (include everything else before that, then temporarily change to 10.7 and include NSApplication.h, then switch back and include files that include that one). Now I'm including just Cocoa/Cocoa.h, which means using that hack again will make things MUCH more problematic (prior to that I was including individual header files).

However, it's the new alignment stuff that really kills it. Sorry :/

from ui.

notnot avatar notnot commented on July 4, 2024

That's a pity. It would be nice if ui ran on all versions of OS X that Go
runs on.
What happens when you run a binary using package ui on OS X 10.6? Will it fail
at load time, or later, as soon as some missing functionality is
encountered?

from ui.

andlabs avatar andlabs commented on July 4, 2024

I'm not sure. It'd probably fail at load time because OS X is very bad at telling you that a binary was compiled for a newer version of the system when not in an app bundle; if you do get father you'll get an exception that -[NSView baselineOffsetFromBottom] or some other NSView selector is undefined. (Note that right at this moment the functionality is disabled, but will be readded when I implement the Form layout.)

from ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.