indragiek / INAppStoreWindow

NSWindow subclass with a highly customizable title bar and traffic lights
BSD 2-Clause "Simplified" License
1.06k stars 162 forks source link

bad way to detect yosemite #196

Open Sega-Zero opened 9 years ago

Sega-Zero commented 9 years ago

Faced with trouble with one user that runs yosemite with NSAppKitVersionNumber == 1331.12, which is less than 1343 in code. I think you should better detect OSX version via NSFoundationVersionNumber:

    floor(NSFoundationVersionNumber) > NSFoundationVersionNumber10_9