<!--
{
  "availability" : [
    "FxPlug: 4.2.3 -"
  ],
  "documentType" : "symbol",
  "framework" : "professional_video_applications",
  "identifier" : "/documentation/professional_video_applications/FxRemoteWindowAPI_v2/remoteWindow(withMinimumSize:maximumSize:reply:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Professional Video Applications"
    ],
    "preciseIdentifier" : "c:objc(pl)FxRemoteWindowAPI_v2(im)remoteWindowWithMinimumSize:maximumSize:reply:"
  },
  "title" : "remoteWindow(withMinimumSize:maximumSize:reply:)"
}
-->

# remoteWindow(withMinimumSize:maximumSize:reply:)

Requests the host application to create a window with a minimum and maximum size that displays a custom UI.

```
func remoteWindow(withMinimumSize minContentSize: CGSize, maximumSize maxContentSize: CGSize, reply: ((NSView?, (any Error)?) -> Void)!)
```

```
func remoteWindow(withMinimumSize minContentSize: CGSize, maximumSize maxContentSize: CGSize) async throws -> NSView?
```

## Parameters

`minContentSize`

The minimum content size for the requested window.

`maxContentSize`

The maximum content size for the requested window.

`reply`

Called when the window is created or if an error occurs during window creation.

## Discussion

Call this method to request that the host creates a new window where your plug-in displays custom-user interface elements. The maximum window size is limited to 80% of the host application’s main window size. The reply block returns the window for your custom view.

If there are any problems creating the window, `parentView` is `nil` and `error` contains an NSError that describes the problem.

> Note: Each plug-in instance is limited to a single window. If a user doesn’t close the window that contains the custom-user interface elements, subsequent calls to this method return the same parent view.

---

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)