Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!decwrl!fernwood!franz!cox From: cox@Franz.COM (Charles A. Cox) Newsgroups: comp.sys.next Subject: Re: How to do Windows in Allegro Common Lisp? Message-ID: Date: 2 Apr 91 17:15:56 GMT References: <2381@fornax.UUCP> Sender: news@Franz.COM Organization: Franz Inc., Berkeley, CA Lines: 40 In-reply-to: mcdonald@fornax.UUCP's message of 29 Mar 91 06:17:28 GMT In article <2381@fornax.UUCP> mcdonald@fornax.UUCP (Ken Mcdonald) writes: > I'm learning (well, trying) to use Allegro Common Lisp on the Next, to produce Next-style > applications. The first step is to be able to > 1) Create a window. > 2) Show it on the screen. > 3) Move it around from within the code. > 4) Get rid of it. > As you might have guessed, I'm currently on step 0) Contact the UseNet for help. This answer may not seem very helpful to you, but you are unfortunately going to have to read up on the NeXT documentation regarding applications/toolkits in order to make effective use of them in Allegro CL. The Allegro CL Objective-C interface allows you to link into the NeXT application building environment (NeXTStep), but the LISP is not a NeXT application itself. Creating windows generally requires that an Application object already be created. Although you don't need to use Objective-C for the actual windowized application programming, you still need to know how to read the Objective-C in the NeXT documentation of the NeXT libraries to learn the interfaces. Once you understand how the interface to a NeXT class is done using Objective-C, it is a simple matter to convert the Objective-C code structure into LISP. The advantage to doing this, then, is that nature of LISP allows you to redefine and add new methods and classes dynamically. You may wish to look at and try running the simple examples included with the Allegro CL distribution. These were done using the Interface Builder (from NeXT 1.0) to create the interfaces (windows). The lisp programs themselves then make use of these windows as part of their interfaces. Charley -- --- Charles A. Cox, Franz Inc. 1995 University Avenue, Suite 275 Internet: cox@franz.com Berkeley, CA 94704 uucp: uunet!franz!cox Phone: (415) 548-3600; FAX: (415) 548-8253