From b8a1618c0afa136e2ba3bb54ee87129655630873 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Mon, 17 Nov 2014 16:08:23 +0000 Subject: Implement applicationDidUpdate differently according to running OS version. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10459 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_cocoa.mm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 1ab0118d9..09d42bdd2 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -1380,8 +1380,7 @@ static FLWindowDelegate *flwindowdelegate_instance = nil; } - (void)applicationDidUpdate:(NSNotification *)aNotification { - if ((fl_mac_os_version >= 100500) && (im_enabled != -1) && - (TSMGetActiveDocument != NULL)) { + if ((im_enabled != -1) && (TSMGetActiveDocument != NULL)) { TSMDocumentID newDoc; // It is extremely unclear when Cocoa decides to create/update // the input context, but debugging reveals that it is done @@ -1478,6 +1477,7 @@ static FLWindowDelegate *flwindowdelegate_instance = nil; @interface FLAppDelegateBefore10_5 : FLAppDelegate - (void)applicationDidUnhide:(NSNotification *)notify; +- (void)applicationDidUpdate:(NSNotification *)aNotification; @end @implementation FLAppDelegateBefore10_5 - (void)applicationDidUnhide:(NSNotification *)notify @@ -1490,6 +1490,9 @@ static FLWindowDelegate *flwindowdelegate_instance = nil; } fl_unlock_function(); } +- (void)applicationDidUpdate:(NSNotification *)aNotification +{ +} @end /* -- cgit v1.2.3