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

# userSpaceScaleFactor

Returns the scale factor applied to the window.

```
- (CGFloat) userSpaceScaleFactor;
```

## Return Value

The scale factor applied to the window.

## Discussion

Clients can multiply view coordinates by the returned scale factor to get a set of new coordinates that are scaled to the resolution of the target screen. For example, if the scale factor is 1.25 and the view frame size is 80 x 80, the actual size of the view frame is 100 x 100 pixels on the target screen.

---

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)