Skip to content

Conversation

@michaliskambi
Copy link

Since FPC 3.2.0, one has to use ObjCBool instead of Boolean, otherwise GLPT compilation fails at various overrides because the methods are declared in ancestor with ObjCBool (not compatible with Pascal Boolean).

E.g. in latest FPC, packages/cocoaint/src/appkit/NSWindow.inc defines

function initWithContentRect_styleMask_backing_defer (contentRect: NSRect; aStyle: NSUInteger; bufferingType: NSBackingStoreType; flag: ObjCBOOL): instancetype; message 'initWithContentRect:styleMask:backing:defer:';

In GLPT, this should be overridden with flag: ObjCBool, not flag: Boolean.

See https://fpcwiki.coderetro.net/User_Changes_3.2.0#objcbase .

Since FPC 3.2.0, one has to use `ObjCBool` instead of `Boolean`, otherwise GLPT compilation fails at various overrides because the methods are declared in ancestor with `ObjCBool` (not compatible with Pascal `Boolean`).

E.g. in latest FPC, `packages/cocoaint/src/appkit/NSWindow.inc` defines

```
function initWithContentRect_styleMask_backing_defer (contentRect: NSRect; aStyle: NSUInteger; bufferingType: NSBackingStoreType; flag: ObjCBOOL): instancetype; message 'initWithContentRect:styleMask:backing:defer:';
```

In GLPT, this should be overridden with `flag: ObjCBool`, not `flag: Boolean`.

See https://fpcwiki.coderetro.net/User_Changes_3.2.0#objcbase .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant