Mercurial > dwindows
changeset 1904:2e456850e027
Minor fix for that last commit... code actually works now. ;)
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Wed, 01 Oct 2014 05:37:10 +0000 |
parents | b94b4ad26a05 |
children | 0d67f00866b7 |
files | mac/dw.m |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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]) {