Re: Getting the failed URL from webView:didFailProvisionalNavigation:withError:

2015-07-16 Thread Quincey Morris
On Jul 15, 2015, at 23:45 , Rick Mann wrote: > > I wish the deprecation warnings in the headers indicated the replacements. When Xcode can tell you it's deprecated, it’s always worth checking in the header file directly for any comments about what to use instead. (Note that deprecations *can*

Re: Getting the failed URL from webView:didFailProvisionalNavigation:withError:

2015-07-15 Thread Roland King
> On 16 Jul 2015, at 14:45, Rick Mann wrote: > > >> On Jul 15, 2015, at 23:44 , Quincey Morris >> wrote: >> >> IDK, but in the NSError class reference documentation it says this was >> deprecated in iOS 4.0 and the replacement is >> “NSURLErrorFailingURLStringErrorKey”, so I’d assume that’

Re: Getting the failed URL from webView:didFailProvisionalNavigation:withError:

2015-07-15 Thread Rick Mann
> On Jul 15, 2015, at 23:44 , Quincey Morris > wrote: > > IDK, but in the NSError class reference documentation it says this was > deprecated in iOS 4.0 and the replacement is > “NSURLErrorFailingURLStringErrorKey”, so I’d assume that’s the correct thing > to use instead. Ah, good catch. I

Re: Getting the failed URL from webView:didFailProvisionalNavigation:withError:

2015-07-15 Thread Quincey Morris
On Jul 15, 2015, at 23:23 , Rick Mann wrote: > > ViewController.swift:86:36: 'NSErrorFailingURLStringKey' is unavailable: APIs > deprecated as of iOS 7 and earlier are unavailable in Swift IDK, but in the NSError class reference documentation it says this was deprecated in iOS 4.0 and the repl

Re: Getting the failed URL from webView:didFailProvisionalNavigation:withError:

2015-07-15 Thread Rick Mann
> On Jul 15, 2015, at 23:39 , Roland King wrote: > > >> On 16 Jul 2015, at 14:23, Rick Mann wrote: >> >> This delegate method is passed a WKWebView whose URL property is nil, a >> WKNavigation that doesn't have any information, and an NSError that has in >> its userInfo dictionary a NSError

Re: Getting the failed URL from webView:didFailProvisionalNavigation:withError:

2015-07-15 Thread Roland King
> On 16 Jul 2015, at 14:23, Rick Mann wrote: > > This delegate method is passed a WKWebView whose URL property is nil, a > WKNavigation that doesn't have any information, and an NSError that has in > its userInfo dictionary a NSErrorFailingURLStringKey. But in iOS 9 this key > is marked as de

Getting the failed URL from webView:didFailProvisionalNavigation:withError:

2015-07-15 Thread Rick Mann
This delegate method is passed a WKWebView whose URL property is nil, a WKNavigation that doesn't have any information, and an NSError that has in its userInfo dictionary a NSErrorFailingURLStringKey. But in iOS 9 this key is marked as deprecated in iOS 7 and is thus unusable in Swift. ViewCont