Building lazarus-cocoa with fpc 3.2.0-RC1 is broken because of updated cocoa headers
Original Reporter info from Mantis: karl-michael.schindler@web.de @KaMiSchi
-
Reporter name: Karl-Michael Schindler
Original Reporter info from Mantis: karl-michael.schindler@web.de @KaMiSchi
- Reporter name: Karl-Michael Schindler
Description:
Building Lazarus-cocoa in the 2.0-fixes branch is broken:
make bigide LCL_PLATFORM=cocoa
gives:
...
cocoaprivate.pas(1552,26) Error: identifier idents no member "setNeedsDisplay"
cocoaprivate.pas(1563,8) Error: identifier idents no member "setNeedsDisplay"
...
I do not really understand the details, but I assume the update of the Cocoaint header translations has not been taken into account.
After replacing setNeedsDisplay in cocoaprivate.pas with setNeedsDisplay_(true) the next error shows up:
cocoascrollers.pas(53,15) Error: There is no method in an ancestor class to be overridden: "setDocumentView(NSView);"
cocoascrollers.pas(53,15) Error: Objective-C messages require their Objective-C selector name to be specified using the "message" directive.
cocoascrollers.pas(53,15) Error: Mismatch between number of declared parameters and number of colons in message string.
I assume all lazarus version 2.0.* are affected.
Steps to reproduce:
make bigide LCL_PLATFORM=cocoa
Mantis conversion info:
- Mantis ID: 36864
- OS: Mac OS X
- OS Build: 10.5, 10.6
- Platform: darwin
- Version: 2.0.7 (SVN)
- Fixed in revision: 62885 (#e1d1474d)
- Target version: 2.0.8