Lisp HUG Maillist Archive

Cocoa CAPI windows

Is there a "legit" way for me to get the NSWindow representation used 
for a CAPI interface? I'd like to add my own NSResponder to the 
responder chain for it.

Or, as an alternative, if there is a :default-initarg I could use in 
define-interface which specified an Objective-C class (a subclass of 
NSWindow) to use that would be equally helpful/useful.

Do either of these exist?

_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html


Re: Cocoa CAPI windows

I should note that currently I'm getting around this by doing the following:

(defun ns-window-for-interface (interface)
   (invoke (cocoa-view-pane-view interface) "window"))

But I'm not sure if this will work under all circumstances.

Jeffrey Massung wrote:
> Is there a "legit" way for me to get the NSWindow representation used 
> for a CAPI interface? I'd like to add my own NSResponder to the 
> responder chain for it.
>
> Or, as an alternative, if there is a :default-initarg I could use in 
> define-interface which specified an Objective-C class (a subclass of 
> NSWindow) to use that would be equally helpful/useful.
>
> Do either of these exist?

_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html


Updated at: 2020-12-10 08:34 UTC