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
UIDelegate
for theWebView
in Interface Builder.(How to use a
NSOpenPanel
I found here: http://ekle.us/index.php/2006/12/displaying_a_file_open_dialog_in_cocoa_w )ps. use
[resultListener chooseFilenames:...]
for multiple filesI got it working by altering this a bit as form part is depreciated: