Re: questions on WebView for Mac apps
Re: questions on WebView for Mac apps
- Subject: Re: questions on WebView for Mac apps
- From: Alex Hall <email@hidden>
- Date: Thu, 01 Oct 2015 11:15:59 -0400
> On Oct 1, 2015, at 06:49, Marek Hrušovský <email@hidden> 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 minutes of work.
Fair enough. As I said, I hadn't yet looked into how to do it, it just seems strange to not offer the object we're supposed to prefer in IB at all.
>
>
> On Thu, Oct 1, 2015 at 3:00 AM, Alex Hall <email@hidden <mailto:email@hidden>> wrote:
>
> > On Sep 30, 2015, at 17:35, Charles Srstka <email@hidden <mailto:email@hidden>> wrote:
> >
> >> On Sep 30, 2015, at 4:28 PM, Jens Alfke <email@hidden <mailto:email@hidden> <mailto:email@hidden <mailto:email@hidden>>> wrote:
> >>
> >>> On Sep 30, 2015, at 2:20 PM, Alex Hall <email@hidden <mailto:email@hidden> <mailto:email@hidden <mailto:email@hidden>>> 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, become unresponsive, and never actually do anything.
> >>
> >> Don’t change an IB object’s class to anything but a subclass of the normal class!
> >> If you need a WKWebView in a nib, drag out an NSObject and change its class.
> >
> > Or, more correctly, an NSView (labeled as “Custom View” in IB).
> >
> So I can be sure I'm correct: Apple wants everyone to use the new WKWebView class instead of WebView, but to use it, I have to build it from scratch? I'll look into it, but that seems an odd decision. Even in 7.1, I don't see WKWebView available in the Object Library.
>
> --
> Have a great day,
> Alex Hall
> email@hidden <mailto:email@hidden>
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden <mailto:email@hidden>)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com <http://lists.apple.com/>
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden <mailto:email@hidden>
--
Have a great day,
Alex Hall
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden