macOS extensions

From Free Pascal wiki
Jump to navigationJump to search

The package is intended to provide additional macOS Cocoa specific features.

Note: It's expected that those features will not work on any other system or as well as for deprecated Carbon API on macOS. However, it's expected that a project using the package would still succeffully compile and run on any other target.

Code

Extensions

Appearance

NSAppearance class was introduced in macOS 10.9 for the first time. It's per window appearance options. The fact that it's per window configuration makes it different from Themes - that's system wide configuration.

The implementation is checking for the presence of NSAppearance class dynamically. Thus, if the code is launched on an earlier version of macOS, it would still be able to run, even though will not do anything.

See Also