my app should open a website from my server in web view. Everything works fine until I tried to use my app with EL Captian.
Here I dumbed the code down:
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
NSString *urlText = [[NSUserDefaults standardUserDefaults] stringForKey:@"urlTextField"];
[[self.webView mainFrame] loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:urlText]]];
return;
}
- (void)applicationWillTerminate:(NSNotification *)aNotification {
// Insert code here to tear down your application
}
- (IBAction)navigateURL:(id)sender {
NSString *urlTextField = [self.urlTextField stringValue];
NSURL*url=[NSURL URLWithString:urlTextField];
NSURLRequest*request=[NSURLRequest requestWithURL:url];
[[[self webView] mainFrame] loadRequest:request];
}
this works fine with sites like Wikipedia or Apple.com, but with El Capitan I have no chance to connect to my site (http://resolvo-app.com).
Thanks for help!