I created a custom browser from the WebKit framework. I almost got everything setup.
However, when visiting a webpage with file upload (say flickr), nothing happens when I press the “Upload” button. Normally this would give an popup in safari/firefox/..
What do I need to get file upload to work with WebKit in Cocoa? NSFileHandler, NSFileManager? And how do I do it?
Regards,
Friesgaard
Alright, I figured I out for my self.
Implement the following method in a class. Set the class as as
UIDelegatefor theWebViewin Interface Builder.(How to use a
NSOpenPanelI found here:http://ekle.us/index.php/2006/12/displaying_a_file_open_dialog_in_cocoa_w
)
ps. use
[resultListener chooseFilenames:...]for multiple files