<!--
{
  "availability" : [
    "macOS: 10.10.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSViewController/preferredScreenOrigin",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSViewController(py)preferredScreenOrigin"
  },
  "title" : "preferredScreenOrigin"
}
-->

# preferredScreenOrigin

For a view controller that is part of an app extension, the preferred screen origin.

```
var preferredScreenOrigin: NSPoint { get set }
```

## Discussion

Set this property to position the lower-left corner of the app extension’s  primary view in screen space. To specify the desired primary view size for an app extension’s view controller, use the [`preferredContentSize`](/documentation/AppKit/NSViewController/preferredContentSize) property.

## See Also

[`preferredContentSize`](/documentation/AppKit/NSViewController/preferredContentSize)

The desired size of the view controller’s view, in screen units.



---

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)