<!--
{
  "availability" : [
    "macOS: 10.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Quartz",
  "identifier" : "/documentation/Quartz/IKPictureTaker/popUpRecentsMenu(for:withDelegate:didEnd:contextInfo:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Quartz"
    ],
    "preciseIdentifier" : "c:objc(cs)IKPictureTaker(im)popUpRecentsMenuForView:withDelegate:didEndSelector:contextInfo:"
  },
  "title" : "popUpRecentsMenu(for:withDelegate:didEnd:contextInfo:)"
}
-->

# popUpRecentsMenu(for:withDelegate:didEnd:contextInfo:)

Displays the Open Recent popup menu associated with the  picture taker.

```
func popUpRecentsMenu(for aView: NSView!, withDelegate delegate: Any!, didEnd didEndSelector: Selector!, contextInfo: UnsafeMutableRawPointer!)
```

## Parameters

`aView`

The object that will invoke the selector  `didEndSelector` when the picture taker session terminates.

`delegate`

The selector to invoke when the picture taker session terminates.

`didEndSelector`

Any data that must be passed as an argument to the delegate through `didEndSelector` after the picture taker session terminates.

`contextInfo`

An optional context object available to delegates when called.

## Discussion

The `didEndSelector` method should have the following signature:

`- (void)pictureTakerDidEnd:(IKPictureTaker *)sheet returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo;`

The `returnCode` value is set to `NSOKButton` if the user validates, or to `NSCancelButton` if the user cancels.

---

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)