Lisp HUG Maillist Archive

simple-pane-handle on OSX

Hi List,

The capi:simple-pane-handle function according to documentation returns the window handle of a pane. It is an integer value. What is the meaning of this value on OSX? Is where a way to get an underlying NSWindow?

Br,
/Alexey

Re: simple-pane-handle on OSX


At least for top-level interfaces, you can get a pointer to the underlying NSWindow using

(objc:invoke (objc:invoke "NSApplication" "sharedApplication") "windowWithWindowNumber:" (capi:simple-pane-handle interface))

Erik

8 juni 2015, Alexey Veretennikov <txm.fourier@gmail.com> skrev:

Hi List,

The capi:simple-pane-handle function according to documentation returns the window handle of a pane. It is an integer value. What is the meaning of this value on OSX? Is where a way to get an underlying NSWindow?

Br,
/Alexey

Re: simple-pane-handle on OSX

At least for top-level interfaces, you can get a pointer to the underlying NSWindow using

(objc:invoke (objc:invoke "NSApplication" "sharedApplication") "windowWithWindowNumber:" (capi:simple-pane-handle interface))

Erik


8 jun 2015 kl. 23:55 skrev Alexey Veretennikov <txm.fourier@gmail.com>:

Hi List,

The capi:simple-pane-handle function according to documentation returns the window handle of a pane. It is an integer value. What is the meaning of this value on OSX? Is where a way to get an underlying NSWindow?

Br,
/Alexey

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