mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-12 14:23:33 +00:00
This commit updates the `darwin/Foundation` package's `NSScreen` bindings
to treat Objective-C "type properties" as class methods rather than
instance methods.
As a result, we can now access these properties like this:
```odin
import NS "core:sys/darwin/Foundation"
main :: proc() {
NS.Screen.mainScreen()
}
```
instead of this:
```odin
import NS "core:sys/darwin/Foundation"
main :: proc() {
(^NS.Screen)(nil).mainScreen()
}
```
This commit also adds a binding for `NSScreen`'s `screensHaveSeparateSpaces`
type property, which was previously missing from the `darwin/Foundation`
package.
Co-authored-by: Jacob Evelyn <j@cob.land>