simon-svn: puzzles: simon

Commits to Tartarus CVS repository. tartarus-commits at lists.tartarus.org
Mon Oct 20 18:43:38 BST 2014


SVN root:       svn://svn.tartarus.org/sgt
Changes by:     simon
Revision:       10286
Date:           2014-10-20 18:43:38 +0100 (Mon, 20 Oct 2014)

Log message (11 lines):
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.

Modified files:
U   puzzles/osx.m

Links:
http://svn.tartarus.org/sgt/?rev=10286&view=rev
http://svn.tartarus.org/sgt/puzzles/osx.m?rev=10286&r1=10285&r2=10286



More information about the tartarus-commits mailing list