# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1412141830 0 # Node ID 2e456850e02715b7c1f6e90e11cd177376fc8007 # Parent b94b4ad26a05e6d6c1f57b1f1f7988d222f00294 Minor fix for that last commit... code actually works now. ;) diff -r b94b4ad26a05 -r 2e456850e027 mac/dw.m --- a/mac/dw.m Tue Sep 30 22:13:25 2014 +0000 +++ b/mac/dw.m Wed Oct 01 05:37:10 2014 +0000 @@ -47,7 +47,7 @@ localpool = [[NSAutoreleasePool alloc] init]; #define DW_LOCAL_POOL_OUT if(localpool) [localpool drain]; -/* Handle deprecation of several response constants in 10.10... +/* Handle deprecation of several constants in 10.10... * the replacements are not available in earlier versions. */ #if defined(MAC_OS_X_VERSION_10_9) && ((defined(MAC_OS_X_VERSION_MAX_ALLOWED) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_9) || !defined(MAC_OS_X_VERSION_MAX_ALLOWED)) @@ -8111,9 +8111,9 @@ /* Handle deprecation of convertScreenToBase in 10.10 yet still supporting * 10.6 and earlier since convertRectFromScreen was introduced in 10.7. */ -NSPoint _windowPointFromScreen(NSWindow *window, NSPoint p) -{ - SEL crfs = NSSelectorFromString(@"convertRectFromScreen"); +NSPoint _windowPointFromScreen(id window, NSPoint p) +{ + SEL crfs = NSSelectorFromString(@"convertRectFromScreen:"); if([window respondsToSelector:crfs]) { @@ -8123,7 +8123,7 @@ } else { - SEL cstb = NSSelectorFromString(@"convertScreenToBase"); + SEL cstb = NSSelectorFromString(@"convertScreenToBase:"); if([window respondsToSelector:cstb]) {