Could you explain precisely what you mean by "getting" the NSPopover and its delegate ? Which delegate ?
If I understand what you want, I would define a class for the popover and declare a delegate there (that's Swift, but easy to adapt to objC):
class SeguedViewController: NSViewController {
@IBOutlet weak var label: NSTextField!
var labelContent : String?
var delegate: NSViewController?
override func viewDidLoad() {
super.viewDidLoad()
// Do view setup here.
label.stringValue = labelContent ?? "empty"
}
}
And define them in tha calling VC
override func prepare(for segue: NSStoryboardSegue, sender: Any?) {
if let dest = segue.destinationController as? SeguedViewController {
dest.labelContent = "I passed text"
dest.delegate = self // For instance
}
}