summaryrefslogtreecommitdiff
path: root/fpicker
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2011-09-29 00:24:29 +0300
committerTor Lillqvist <tml@iki.fi>2011-09-29 00:54:44 +0300
commite41899b782a165adc12966e07398c38e8c73711c (patch)
treee284c0bf4639528e25c12044b09218c32fde06af /fpicker
parent15759b8c9423c8f3fd0be97566698bf94535875a (diff)
WaE: class 'AquaFilePickerDelegate' does not implement the 'NSOpenSavePanelDelegate' protocol
Diffstat (limited to 'fpicker')
-rw-r--r--fpicker/source/aqua/SalAquaFilePicker.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/fpicker/source/aqua/SalAquaFilePicker.cxx b/fpicker/source/aqua/SalAquaFilePicker.cxx
index 12846f54caf3..2788da4f6f2a 100644
--- a/fpicker/source/aqua/SalAquaFilePicker.cxx
+++ b/fpicker/source/aqua/SalAquaFilePicker.cxx
@@ -57,6 +57,7 @@
#include "SalAquaFilePicker.hxx"
+#include <objc/objc-runtime.h>
#pragma mark DEFINES
@@ -224,7 +225,13 @@ sal_Int16 SAL_CALL SalAquaFilePicker::execute() throw( uno::RuntimeException )
}
//Set the delegate to be notified of certain events
- [m_pDialog setDelegate:m_pDelegate];
+
+ // I don't know why, but with gcc 4.2.1, this line results in the warning:
+ // class 'AquaFilePickerDelegate' does not implement the 'NSOpenSavePanelDelegate' protocol
+ // So instead of:
+ // [m_pDialog setDelegate:m_pDelegate];
+ // do:
+ objc_msgSend(m_pDialog, @selector(setDelegate:), m_pDelegate);
int nStatus = runandwaitforresult();