From e41899b782a165adc12966e07398c38e8c73711c Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Thu, 29 Sep 2011 00:24:29 +0300 Subject: WaE: class 'AquaFilePickerDelegate' does not implement the 'NSOpenSavePanelDelegate' protocol --- fpicker/source/aqua/SalAquaFilePicker.cxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'fpicker/source') 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 #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(); -- cgit