@grynspan @ameaijou @gparker python -c "from Foundation import *; print NSProcessInfo.processInfo().isOperatingSystemAtLeastVersion_"
@ameaijou @gparker @grynspan Yes, I just checked 10.9.5 and the method seems to be there (and work).
@grynspan @gparker I know that’s what you recommend, but I've been bitten before by -respondsToSelector: and previously private API.
@gparker @grynspan calls to -mjtIsYosemiteOrBetter so it is very clear when I can eventually remove the check.
@gparker @grynspan I do checks like this this way because: (1) method might have existed before, but undocumented (2) I end up with
@grynspan Yeah, I never quite understood the old system. Always found myself hardcoding latest version since didn't have access to constant.
@danielpunkass Future Daniel will thank you.
@grynspan Yeah, that’s what I use if the other version says it’s at least 10.10. Much more readable.
Git as a Document Format: mjtsai.com/blog/2015/08/2… #mjtsaiblog
Checking for El Capitan: mjtsai.com/blog/2015/08/2… #mjtsaiblog
Checking for El Capitan: mjtsai.com/blog/2015/08/2… #mjtsaiblog
Checking for El Capitan: mjtsai.com/blog/2015/08/2… #mjtsaiblog
Making Tab-Switching and Scrolling Faster in OmniFocus for Mac: mjtsai.com/blog/2015/08/2… #mjtsaiblog
Swift Funtime: mjtsai.com/blog/2015/08/2… #mjtsaiblog
Lazy Filters and Maps: mjtsai.com/blog/2015/08/2… #mjtsaiblog