chiark / gitweb /
Stop using NSApp in the OS X front end.
authorSimon Tatham <anakin@pobox.com>
Mon, 20 Oct 2014 17:43:38 +0000 (17:43 +0000)
committerSimon Tatham <anakin@pobox.com>
Mon, 20 Oct 2014 17:43:38 +0000 (17:43 +0000)
commit74a97a1efb5dd7d27011b677197dcb29cf00937f
tree825b41caefda09e161561d7fde013202101b5c6e
parentb1158d4dcf76aebf2a4dbac0734095a5a4ece6c0
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]
osx.m