# gpui: Use NSOperatingSystemVersion provided by cocoa \(\#28055\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/80441f675b06ac64c0e5ecfa8c31bea87241afde)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 80441f675b06ac64c0e5ecfa8c31bea87241afde

Requested commit: 80441f675b06ac64c0e5ecfa8c31bea87241afde

Commit: 80441f675b06ac64c0e5ecfa8c31bea87241afde

Tree: 894258e7df55f2cf0a791d662036aec17c42d27f

Author: tidely

Committer: GitHub

## Message

```
gpui: Use NSOperatingSystemVersion provided by cocoa (#28055)

Use the `NSOperatingSystemVersion` struct provided by the cocoa crate
instead of our own. Additionally we can directly use
`isOperatingSystemAtLeastVersion` instead of manually implementing
version comparison logic.

The `isOperatingSystemAtLeastVersion` instance method has been available
since MacOS 10.10, which released a decade ago.

Documentation for `isOperatingSystemAtLeastVersion `:
https://developer.apple.com/documentation/foundation/nsprocessinfo/1414876-isoperatingsystematleastversion

Release Notes:

- N/A
```

## Parents

- [393d6560a3d30ef5c32183e3fe4969ef3a564e82](https://git.cafe/gitcafe/zed/commit/393d6560a3d30ef5c32183e3fe4969ef3a564e82?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/80441f675b06ac64c0e5ecfa8c31bea87241afde?format=markdown)
