ref: 74a97a1efb5dd7d27011b677197dcb29cf00937f
parent: b1158d4dcf76aebf2a4dbac0734095a5a4ece6c0
author: Simon Tatham <anakin@pobox.com>
date: Mon Oct 20 13:43:38 EDT 2014
Stop using NSApp in the OS X front end. As of OS X 10.10 (Yosemite), this causes a compile failure, which according to the Internet is because NSApp is a generic 'id' (Objective-C's answer to void *), which causes the compiler to select the wrong method for [NSApp setDelegate:...] and give a spurious type warning. Fixed by using [NSApplication sharedApplication] throughout, or rather, calling that once at startup and assigning the result into my own global variable which will do as an NSApp replacement. [originally from svn r10286]