Re: questions on WebView for Mac apps

2015-10-02 Thread Conrad Shultz
> On Sep 30, 2015, at 11:59 AM, Jens Alfke wrote: > > >> On Sep 30, 2015, at 10:43 AM, Conrad Shultz > > wrote: >> >> WKWebVew is the preferred API. >> >> If WKWebView is missing API that prevents you from adopting it (on either >> iOS or OS X) please file a b

Re: questions on WebView for Mac apps

2015-10-01 Thread Dave
> On 1 Oct 2015, at 16:15, Alex Hall wrote: > > >> On Oct 1, 2015, at 06:49, Marek Hrušovský wrote: >> >> The only thing you have to do is to call a method and add it as subview in >> your code >> - (instancetype)initWithFrame:(CGRect)frame >> configuration:(WKWebViewConfiguration *)configu

Re: questions on WebView for Mac apps

2015-10-01 Thread Alex Hall
> On Oct 1, 2015, at 06:49, Marek Hrušovský wrote: > > The only thing you have to do is to call a method and add it as subview in > your code > - (instancetype)initWithFrame:(CGRect)frame > configuration:(WKWebViewConfiguration *)configuration > NS_DESIGNATED_INITIALIZER; > > It's max 3 minu

Re: questions on WebView for Mac apps

2015-10-01 Thread Marek Hrušovský
The only thing you have to do is to call a method and add it as subview in your code - (instancetype)initWithFrame:(CGRect)frame configuration:(WKWebViewConfiguration *)configuration NS_DESIGNATED_INITIALIZER; It's max 3 minutes of work. On Thu, Oct 1, 2015 at 3:00 AM, Alex Hall wrote: > > > O

Re: questions on WebView for Mac apps

2015-09-30 Thread Alex Hall
> On Sep 30, 2015, at 17:35, Charles Srstka wrote: > >> On Sep 30, 2015, at 4:28 PM, Jens Alfke > > wrote: >> >>> On Sep 30, 2015, at 2:20 PM, Alex Hall >> > wrote: >>> >>> Thanks everyone. I'm now using WKWebView, but it's… odd. I see only

Re: questions on WebView for Mac apps

2015-09-30 Thread Jens Alfke
> On Sep 30, 2015, at 2:37 PM, Alex Kac wrote: > > Are you sure you’ve looked at WKWebView in its entirety? I was looking at > converting a UIWebView and WKWebView seems to have 10x MORE API than > UIWebView. Its just sprinkled about in a lot more classes and delegates. This > is a great reso

Re: questions on WebView for Mac apps

2015-09-30 Thread Alex Kac
Are you sure you’ve looked at WKWebView in its entirety? I was looking at converting a UIWebView and WKWebView seems to have 10x MORE API than UIWebView. Its just sprinkled about in a lot more classes and delegates. This is a great resource: > On Sep 30, 2015,

Re: questions on WebView for Mac apps

2015-09-30 Thread Charles Srstka
> On Sep 30, 2015, at 4:28 PM, Jens Alfke wrote: > >> On Sep 30, 2015, at 2:20 PM, Alex Hall > > wrote: >> >> Thanks everyone. I'm now using WKWebView, but it's… odd. I see only WebView >> in the object library in Xcode, no WKWebView at all. Just because, I changed >

Re: questions on WebView for Mac apps

2015-09-30 Thread Marco S Hyman
On Sep 30, 2015, at 2:20 PM, Alex Hall wrote: > > Thanks everyone. I'm now using WKWebView, but it's… odd. I see only WebView > in the object library in Xcode, no WKWebView at all. No WKWebView in IB. You have to build your view in code. At least it was that way last time I checked. _

Re: questions on WebView for Mac apps

2015-09-30 Thread Jens Alfke
> On Sep 30, 2015, at 2:20 PM, Alex Hall wrote: > > Thanks everyone. I'm now using WKWebView, but it's… odd. I see only WebView > in the object library in Xcode, no WKWebView at all. Just because, I changed > the class of a WebView object to WKWebView, but am now seeing my app launch, > becom

Re: questions on WebView for Mac apps

2015-09-30 Thread Charles Srstka
On Sep 30, 2015, at 12:43 PM, Conrad Shultz wrote: > > WKWebVew is the preferred API. > > If WKWebView is missing API that prevents you from adopting it (on either iOS > or OS X) please file a bug at https://bugreport.apple.com > . WKWebView doesn’t seem to have

Re: questions on WebView for Mac apps

2015-09-30 Thread Alex Hall
Thanks everyone. I'm now using WKWebView, but it's… odd. I see only WebView in the object library in Xcode, no WKWebView at all. Just because, I changed the class of a WebView object to WKWebView, but am now seeing my app launch, become unresponsive, and never actually do anything. The only erro

Re: questions on WebView for Mac apps

2015-09-30 Thread Jens Alfke
> On Sep 30, 2015, at 10:43 AM, Conrad Shultz wrote: > > WKWebVew is the preferred API. > > If WKWebView is missing API that prevents you from adopting it (on either iOS > or OS X) please file a bug at https://bugreport.apple.com > . Really? WKWebView has like ¼

Re: questions on WebView for Mac apps

2015-09-30 Thread Conrad Shultz
WKWebVew is the preferred API. If WKWebView is missing API that prevents you from adopting it (on either iOS or OS X) please file a bug at https://bugreport.apple.com . -Conrad ___ Cocoa-dev mailing list (Cocoa-dev@lists

Re: questions on WebView for Mac apps

2015-09-30 Thread dangerwillrobinsondanger
> On Sep 30, 2015, at 3:12 PM, Jens Alfke wrote: > > Hey, if I liked working with JavaScript DOM APIs I’d be a web developer :-p > I prefer languages with fancy features, like warning me if I pass the wrong > number of parameters to a function. At build time, even. No disagreement here. None

Re: questions on WebView for Mac apps

2015-09-29 Thread Jens Alfke
> On Sep 29, 2015, at 10:35 PM, dangerwillrobinsondan...@gmail.com wrote: > > Then you realize it's a performance and security thing and it's pretty much > the same as the Safari Extensions API . Web views in WKWebView are actually a > separate process pool you don't own. > So you can translat

Re: questions on WebView for Mac apps

2015-09-29 Thread dangerwillrobinsondanger
The lack of native DOM API is the head scratcher at first. It leaves you with a message passing API to use the JSContext Objective-C JavaScript API. Then you realize it's a performance and security thing and it's pretty much the same as the Safari Extensions API . Web views in WKWebView are ac

Re: questions on WebView for Mac apps

2015-09-29 Thread Jens Alfke
> On Sep 29, 2015, at 8:15 PM, Roland King wrote: > > is WebView the go-to guy these days or is it WKWebView, which comes with all > the things you love about the Safari browsing experience built-in? That seems > pretty easy to use. There was a WWDC video on it if I remember correctly. WKWeb

Re: questions on WebView for Mac apps

2015-09-29 Thread Roland King
> On 30 Sep 2015, at 10:03, Alex Hall wrote: > > Hello all, > My project is coming along. I'm now to the point where I want to load data > from a URL into a WebView, but there's surprisingly little (read: next to > nothing) about doing this in an app on the Mac. That or I'm googling the > wro

Re: questions on WebView for Mac apps

2015-09-29 Thread Jens Alfke
> On Sep 29, 2015, at 7:03 PM, Alex Hall wrote: > > 1. What class do I want to use when making an outlet for my web view UI > element? Don’t use a custom object. There should be a WebView item in the Interface Builder object palette already. > but "WebView" gives me an error: "use of undecla

questions on WebView for Mac apps

2015-09-29 Thread Alex Hall
Hello all, My project is coming along. I'm now to the point where I want to load data from a URL into a WebView, but there's surprisingly little (read: next to nothing) about doing this in an app on the Mac. That or I'm googling the wrong terms. Anyway, what I'm running into are the following: