From ebec28c3ebc82691856912b48447098c0924ff7b Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 7 Jun 2012 14:24:29 +1000 Subject: Protect against APIs only available on 10.6+ when building for 10.5. --- cocoa/ScintillaView.mm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cocoa/ScintillaView.mm') diff --git a/cocoa/ScintillaView.mm b/cocoa/ScintillaView.mm index 67d79665e..3cdc612c7 100644 --- a/cocoa/ScintillaView.mm +++ b/cocoa/ScintillaView.mm @@ -642,6 +642,7 @@ NSString *SCIUpdateUINotification = @"SCIUpdateUI"; */ - (void) magnifyWithEvent: (NSEvent *) event { +#if MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_5 CGFloat z = [event magnification]; // Zoom out or in 1pt depending on sign of magnification event value (0.0 = no change) @@ -649,6 +650,7 @@ NSString *SCIUpdateUINotification = @"SCIUpdateUI"; [ScintillaView directCall: self message: SCI_ZOOMOUT wParam: 0 lParam: 0]; else if (z >= 0.0) [ScintillaView directCall: self message: SCI_ZOOMIN wParam: 0 lParam: 0]; +#endif } //-------------------------------------------------------------------------------------------------- -- cgit v1.2.3