Results 1 to 5 of 5

Thread: AEInstallEventHandler have you played with it ?

  1. #1
    Join Date
    Apr 2011
    Posts
    132
    Thanks
    14
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default AEInstallEventHandler have you played with it ?

    http://th30z.blogspot.com/2008/08/qt...lick_2711.html

    for me the handler does not work, the appleEventProcessor is not emited

    Can you help ?

  2. #2
    Join Date
    Aug 2011
    Posts
    44
    Thanked 13 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows Symbian S60

    Default Re: AEInstallEventHandler have you played with it ?

    That worked for me when I was using Qt compiled with Carbon (not Cocoa).

  3. #3
    Join Date
    Apr 2011
    Posts
    132
    Thanks
    14
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: AEInstallEventHandler have you played with it ?

    The example is with carbon

    Qt Code:
    1. // Carbon Headers
    2. #ifdef Q_WS_MAC
    3. #include <Carbon/Carbon.h>
    4. #endif
    To copy to clipboard, switch view to plain text mode 

    Qt Code:
    1. macx:LIBS += -framework Carbon
    To copy to clipboard, switch view to plain text mode 

  4. #4
    Join Date
    Aug 2011
    Posts
    44
    Thanked 13 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows Symbian S60

    Default Re: AEInstallEventHandler have you played with it ?

    Please check whether QT_MAC_USE_COCOA define is on.

  5. #5
    Join Date
    Apr 2011
    Posts
    132
    Thanks
    14
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: AEInstallEventHandler have you played with it ?

    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 ?

    Qt Code:
    1. LIBS += -framework \
    2. Sparkle \
    3. -framework \
    4. Cocoa
    5.  
    6. LIBS += -framework Carbon
    To copy to clipboard, switch view to plain text mode 


    Added after 31 minutes:


    I have just made two builds with only cocoa and with only carbon. Both not working.
    Last edited by migel; 20th April 2012 at 17:36.

Similar Threads

  1. save music after played from url to local
    By solook in forum Qt Programming
    Replies: 1
    Last Post: 25th June 2011, 11:15
  2. How to find out what move file types can be played?
    By Markus in forum Qt Programming
    Replies: 3
    Last Post: 12th December 2010, 22:10

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.