How to make action to close NSPopover?
问题 Hi I implemented an NSPopover in one of my apps, but the popover will not close. I'm guessing that it should close once I click something else, but its not. I know that there's a close popover action but that only works for a different button. How can I make it look to see that the popover is open and when it is open to close the popover when I press the same button? 回答1: I solved the problem! First go ahead and click your .xib file. Where you see the first responder box and files owner -