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

# remoteWindow(of:reply:)

Requests that the host application creates a window to display custom UI.

```
func remoteWindow(of contentSize: CGSize, reply: ((NSView?, (any Error)?) -> Void)!)
```

```
func remoteWindow(of contentSize: CGSize) async throws -> NSView?
```

## Parameters

`contentSize`

The desired size for the content rectangle of the window.

`reply`

Called when the window has been created.

## Discussion

Call this method to request that the host creates a new window to display custom user-interface elements. 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 <doc://com.apple.documentation/documentation/Foundation/NSError> that describes the problem.

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)