Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
4.8.6
-
None
-
-
997d626173d9aba5b01b35e4d95ad162771ba789
Description
Building Qt 4.8.6 on OS X 10.10 ends with compilation error.
This affects installation of Qt via the homebrew: https://github.com/Homebrew/homebrew/issues/29837
Root cause: NSApplication was updated to have delegate as a true property, not a getter/setter pair which implicitly behaves as a property. Because of this and because NSApp is of type 'id' not NSApplication*, the only definition of setDelegate: method visible to the compiler was from the NSFileManager. That is why it was complaining about incompatible types. Replacing the NSApp variable on [NSApplication sharedApplication] fixes the problem, because it returns a typed NSApplication* instance of shared NSApplication.