Xcode webview allow download file
Hi everyone
I created a simple web browser with xcode to display a our internal link.
The navigation works perfectly, but I need to enable the download of files (.xml, .txt ect).
How do I integrate it?
My code is:
-------------------------------------------------------------------------------- ----------------------------------------------------------------------
@implementation AppDelegate
@synthesize CDwebView;
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
NSString *urlAddress = @"http://192.168.0.155/enrg/myplanner.php";
NSURL *url = [NSURL URLWithString:urlAddress];
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
[[CDwebView mainFrame] loadRequest:requestObj];
}
- (BOOL) applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)application {
returnYES;
}
@end
-------------------------------------------------------------------------------- ----------------------------------------------------------------------
Thanks in advance .... Celex.