Fix LCL Cocoa compilation after FPC trunk cocoaint updates in r42500/r42501
Original Reporter info from Mantis: Jonas @jmaebe
-
Reporter name: Jonas Maebe
Original Reporter info from Mantis: Jonas @jmaebe
- Reporter name: Jonas Maebe
Description:
The attached patch fixes the LCL Cocoa compilation with FPC trunk after the cocoaint updates in r42500/r42501.
It also fixes a bug related to NSGraphicsContext.save/restoreGraphicsState: this message was only declared as a class message before, while it exists both as an instance and as a class message. This means that sending it to instances actually invoked the class version. This fix may also allow for fixing #28015 (closed) properly now (without resorting to CGContext operations).
Mantis conversion info:
- Mantis ID: 35890
- Version: 2.1 (SVN)
- Fixed in revision: 61625 (#a0a27df2)