Close sheet programmatically xcode mac
So I have a view and a button, I connected that button to the view, to show as sheet.
Now i have a cancel button on that view and I could connect that button to the DismissController , but than I couldn't connect that cancel button to an action in my .m code.
So I want to get a code to close that sheet from the action in my .m code (connected to the cancel button).
iMac, OS X Yosemite (10.10)