<!--
{
  "availability" : [
    "macOS: 10.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSWindow/convertFromScreen(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSWindow(im)convertRectFromScreen:"
  },
  "title" : "convertFromScreen(_:)"
}
-->

# convertFromScreen(_:)

Converts a rectangle from the screen coordinate system to the window’s coordinate system.

```
func convertFromScreen(_ rect: NSRect) -> NSRect
```

## Parameters

`rect`

A rectangle in the screen’s coordinate system.

## Return Value

A rectangle in the window’s coordinate system.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)