Created
November 14, 2017 20:00
-
-
Save jmercouris/f28dd78a20f4fc428ef15b729016c99f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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