Re: capi:interface-display for dialogs

Martin Simmons <[email protected]>
Newsgroups gmane.lisp.lispworks.general
Message-ID <[email protected]>
The primary method of interface-display does the work of displaying the
interface, which would be wrong for a dialog, so display-dialog can't call it
(https://www.lispworks.com/documentation/lw81/capi-m/capi-capi-ref-205.htm).

Hopefully you can do the Objective-C calls in the create-callback.

-- 
Martin Simmons
LispWorks Ltd
http://www.lispworks.com/



>>>>> On Fri, 4 Apr 2025 02:26:43 +0000, John DeSoi (as john at desoi dot dev) said:
> 
> The quote and link below discuss "The lifecycle of a CAPI object". I need to execute some Objective-C calls after the interface is created but before it appears on screen. It does not work if called from the create-callback but does work in :before interface-display. 
> 
> The problem is that interface-display only seems to be called with capi:display not capi:display-dialog. Bug or something else I'm missing?
> 
> Thanks,
> 
> John DeSoi, Ph.D.
> 
> 
> > Sometimes initialization code can be put in the create-callback of your interface, though adding it in suitable methods for initialize-instance or interface-display is usually better.
> 
> 
> 
> https://www.lispworks.com/documentation/lw81/capi-m/capi-modifying-ug-1.htm
> 
> 
> 
> 
> _______________________________________________
> Lisp Hug - the mailing list for LispWorks users
> [email protected]
> http://www.lispworks.com/support/lisp-hug.html
> 

_______________________________________________
Lisp Hug - the mailing list for LispWorks users
[email protected]
http://www.lispworks.com/support/lisp-hug.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.