I have been programming on the mac for many years but I am quite new to interface builder and cocoa. My question is probably quite simple to answer.
I have a button that is used to bring up the file selection dialog to choose a file. I've created the connection between my button and the first responder's openDocument method. Everything works fine.... I click the button and up comes the file selection dialog. BUT how do I get a reference to the document that was selected. I would imagine that there must be an NSDocument object being created - maybe not.
What am I missing. Any help with this would be greatly appreciated.
Thanks.
I have a button that is used to bring up the file selection dialog to choose a file. I've created the connection between my button and the first responder's openDocument method. Everything works fine.... I click the button and up comes the file selection dialog. BUT how do I get a reference to the document that was selected. I would imagine that there must be an NSDocument object being created - maybe not.
What am I missing. Any help with this would be greatly appreciated.
Thanks.