sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Sketchup use of WebKit

    Scheduled Pinned Locked Moved Developers' Forum
    3 Posts 2 Posters 588 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W Offline
      willeykj
      last edited by

      I've been hacking away trying to get Sketchup to use the nightly build of WebKit so that I can use the WebInspector.

      Maybe I was wrong but I thought under the covers Sketchup on the Mac used WebKit. However, it seems that the WebDialog.framework that is built into Sketchup is independent from the WebKit instance pointed to by the DYLD_FRAMEWORK_PATH.

      Any thoughts?

      1 Reply Last reply Reply Quote 0
      • Dan RathbunD Offline
        Dan Rathbun
        last edited by

        Search topics on WebKit

        Likely Sketchup calls a Safari instance (which uses WebKit.) Can you get Safari to use a particular WebKit build (other than what was released with the last Safari version) ??

        There is also an extra parameter mac_only_use_nswindow, to the WebDialog.new constructor for the Mac ONLY. (I don't know what it's supposed to be about, not having a Mac, other than nswindow is a base window class in Carbon or Cocoa. [Can't remember which.])

        I'm not here much anymore.

        1 Reply Last reply Reply Quote 0
        • W Offline
          willeykj
          last edited by

          When Sketchup is run there is no instance of Safari that shows up in the process list. Actually, nothing shows up in the process list other than Sketchup. This indicates that all of the processing is managed within Sketchup itself. Therefore, the sketchup application is linking to frameworks to get its services - rather than launching separate applications. The web framework that Sketchup uses is WebKit.

          Within the Sketchup bundle there is a WebDialog.framework
          The WebDialog.framework has the WebKit.h file so I'm assuming it links to the WebKit.framework within the OS
          I have loaded the nightly build for WebKit and redirected the load path to use the new build.
          If Sketchup is calling WebKit.framework it should be the one I'm referencing.
          Its possible that Sketchup is using some kind of "statically linked" instance of webkit but that isn't likely (I hope)
          The nightly build has a built in Javascript Debugger within the WebInspector but now I need to figure out how to activate it since the Sketchup WebDialogs don't respond to a context click (a right click) like normal Safari windows.

          I hope I'm on the right track since a JavaScript debugger would be a great help to WebDialog development!

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Buy SketchPlus
          Buy SUbD
          Buy WrapR
          Buy eBook
          Buy Modelur
          Buy Vertex Tools
          Buy SketchCuisine
          Buy FormFonts

          Advertisement