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

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes