From bd3643a5976e1a7f2070a06beeb935deeb42fac4 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sun, 25 Jan 2015 12:51:59 -0500 Subject: [PATCH] fix declaration of Cocoa NSApplicationDelegate methods --- libs/gtkmm2ext/gtkapplication_quartz.mm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libs/gtkmm2ext/gtkapplication_quartz.mm b/libs/gtkmm2ext/gtkapplication_quartz.mm index 045db98a95..3e89e643d3 100644 --- a/libs/gtkmm2ext/gtkapplication_quartz.mm +++ b/libs/gtkmm2ext/gtkapplication_quartz.mm @@ -1424,11 +1424,13 @@ namespace Gtk { @end -@interface GtkApplicationDelegate : NSObject {} +@interface GtkApplicationDelegate : NSObject +-(BOOL) application:(NSApplication*) app openFile:(NSString*) file; +- (NSApplicationTerminateReply) applicationShouldTerminate:(NSApplication *) app; @end @implementation GtkApplicationDelegate --(BOOL) application:(NSApplication*) app :(NSString*) file +-(BOOL) application:(NSApplication*) app openFile:(NSString*) file { UNUSED_PARAMETER(app); Glib::ustring utf8_path ([file UTF8String]);