Lisp HUG Maillist Archive

Modal dialog on Cocoa

Modal dialog on Cocoa Hello,

Is it possible to create a modale dialog on Cocoa witch is not attached to a existing interface  (and so that can be moved by the user) ?

The LW IDE does this when it asks for save buffers before quitting the application. But I really don’t see in the manual how to do this with display-dialog, or display.

Thanks

Denis

-------------------------------------------------------
Denis Pousseur
70 rue de Wansijn
1180 Bruxelles, Belgique

Tel : 32 (0)2 219 31 09
Mail :  denis.pousseur@gmail.com
-------------------------------------------------------

Re: Modal dialog on Cocoa

Hi Denis,

I think you can set the :owner keyword in the display-dialog function to (capi:convert-to-screen) and the dialog will not be attached to a specific  window.

(capi::display-dialog mydialog :owner (capi:convert-to-screen))


Jean


Le 21 mars 08 à 15:50, Denis Pousseur a écrit :

Hello,

Is it possible to create a modale dialog on Cocoa witch is not attached to a existing interface  (and so that can be moved by the user) ?

The LW IDE does this when it asks for save buffers before quitting the application. But I really don’t see in the manual how to do this with display-dialog, or display.

Thanks

Denis

-------------------------------------------------------
Denis Pousseur
70 rue de Wansijn
1180 Bruxelles, Belgique

Tel : 32 (0)2 219 31 09
Mail :  denis.pousseur@gmail.com
-------------------------------------------------------

Re: Modal dialog on Cocoa

Re: Modal dialog on Cocoa So simple...

Thanks  !

Denis


Le 21/03/08 16:03, « [NOM] » <[ADRESSE]> a écrit :

Hi Denis,

I think you can set the :owner keyword in the display-dialog function to (capi:convert-to-screen) and the dialog will not be attached to a specific  window.

(capi::display-dialog mydialog :owner (capi:convert-to-screen))


Jean


Le 21 mars 08 à 15:50, Denis Pousseur a écrit :

Hello,
 
 Is it possible to create a modale dialog on Cocoa witch is not attached to a existing interface  (and so that can be moved by the user) ?
 
 The LW IDE does this when it asks for save buffers before quitting the application. But I really don’t see in the manual how to do this with display-dialog, or display.
 
 Thanks
 
 Denis
 
 -------------------------------------------------------
 Denis Pousseur
 70 rue de Wansijn
 1180 Bruxelles, Belgique
 
 Tel : 32 (0)2 219 31 09
 Mail :  denis.pousseur@gmail.com
 -------------------------------------------------------
    




-------------------------------------------------------
Denis Pousseur
70 rue de Wansijn
1180 Bruxelles, Belgique

Tel : 32 (0)2 219 31 09
Mail :  denis.pousseur@gmail.com
-------------------------------------------------------
Updated at: 2020-12-10 08:43 UTC