<!--
{
  "availability" : [
    "macOS: 10.11.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ContactsUI",
  "identifier" : "/documentation/ContactsUI/CNContactPicker/showRelative(to:of:preferredEdge:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Contacts UI"
    ],
    "preciseIdentifier" : "c:objc(cs)CNContactPicker(im)showRelativeToRect:ofView:preferredEdge:"
  },
  "title" : "showRelative(to:of:preferredEdge:)"
}
-->

# showRelative(to:of:preferredEdge:)

Shows the picker popover anchored to the specified view.

```
func showRelative(to positioningRect: NSRect, of positioningView: NSView, preferredEdge: NSRectEdge)
```

## Parameters

`positioningRect`

The content size of the popover.

`positioningView`

The view to which the popover should be positioned.

`preferredEdge`

The edge to which the popover should be anchored to.

## See Also

  <doc://com.apple.documentation/documentation/AppKit/NSPopover>



---

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)