Skip to content

Instantly share code, notes, and snippets.

@jmercouris
Created November 14, 2017 20:00
Show Gist options
  • Save jmercouris/f28dd78a20f4fc428ef15b729016c99f to your computer and use it in GitHub Desktop.
Save jmercouris/f28dd78a20f4fc428ef15b729016c99f to your computer and use it in GitHub Desktop.
(defclass web-view-delegate (ns:ns-object)
()
(:metaclass ns:+ns-object))
(objc:defmethod (#/webViewDidFinishLoad: :void) ((self web-view-delegate) web-view-firing-event)
(print "called"))
(defun make-web-view ()
(on-main-thread
(let ((view
(make-instance
'ns:web-view
:frame-name #@"frame"
:group-name #@"group"
:delegate (make-instance 'web-view-delegate))))
view)))
;; Documentation for reference
;; https://developer.apple.com/documentation/webkit/webview
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment