View Full Version : AEInstallEventHandler have you played with it ?
migel
30th September 2011, 12:24
http://th30z.blogspot.com/2008/08/qt4-mac-dock-icon-click_2711.html
for me the handler does not work, the appleEventProcessor is not emited
Can you help ?
llev
30th September 2011, 13:21
That worked for me when I was using Qt compiled with Carbon (not Cocoa).
migel
30th September 2011, 14:36
The example is with carbon
// Carbon Headers
#ifdef Q_WS_MAC
#include <Carbon/Carbon.h>
#endif
macx:LIBS += -framework Carbon
llev
30th September 2011, 16:37
Please check whether QT_MAC_USE_COCOA define is on.
migel
20th April 2012, 17:36
This tells me "Cocoa!"
#ifdef QT_MAC_USE_COCOA
qDebug() << "Cocoa!" ;
#else
qDebug() << "Carbon!" ;
#endif
Still can't get it working.
Is that because I have complied both of them ?
LIBS += -framework \
Sparkle \
-framework \
Cocoa
LIBS += -framework Carbon
Added after 31 minutes:
I have just made two builds with only cocoa and with only carbon. Both not working.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.