Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-42627

REG [4.8.6-4.8.7] Mac: class_addMethod applicationShouldHandleReopen:hasVisibleWindows registration fails

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P1: Critical
    • None
    • 4.8.7
    • QPA
    • Mac OS X 10.9.5
    • macOS

    Description

      Following code fails after commit 3d5122eab127fbe13d4e13a92ee5f6d6686d2f2f.

      bool test = class_addMethod((objc_class*)delClass, sel_registerName("applicationShouldHandleReopen:hasVisibleWindows:"), (IMP)dockClickHandler,"B@:");
      

      Reason is fix for https://bugreports.qt-project.org/browse/QTBUG-10899 which is the change https://codereview.qt-project.org/#/c/83582/

      Testable with attached example. Above code returns false and registration fails. Can't get callback to dockClickHandler. With Qt 4.8.6 it works.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sgaist Samuel Gaist
            qtcomsupport Qt Support
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes