Im probably going to fumble over this question because I don't exactly know how to ask it.
I have:
Main View controller with a button Second view controller with a table and some other elements
I link the button in Controller #1 to Controller #2 via popover.
This works, but how do I get data from that popover back to controller #1?
How can I programmatically close the popup?
I have: @property NSPopover *popover;
But I don't know how to assign that object to the whole popover thing. This is extremely confusing.
I know I can do something like [popover close] but I dont know how to make 'popover' into a valid object to do anything with.