Skip to content

Instantly share code, notes, and snippets.

@jmercouris
Created November 14, 2017 21:00
Show Gist options
  • Save jmercouris/15b50d77911d85fc60632f20219594cf to your computer and use it in GitHub Desktop.
Save jmercouris/15b50d77911d85fc60632f20219594cf 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")))
(#/setFrameLoadDelegate: view (make-instance 'web-view-delegate))
view)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment