Dylan & the Toolbox 
Author Message
 Dylan & the Toolbox

I've read through the DIRM, but didn't find the answer to this question:
how much of the Toolbox will be covered by classes that come with the
Apple Dylan implementation?  In other words, if I want to call a dialog
box, I assume that Apple Dylan will come with a predefined class that
will allow me to do this ... what percentage of the Toolbox will be covered by
predefined classes?  And what is the mechanism that will allow me to lay
my own classes on top of the Toolbox?  

Finally, are there any available documents that discuss the Apple
implementation of Dylan, rather than just the language specification?

Thanks,

Robert Orenstein



Sat, 01 Mar 1997 15:35:43 GMT  
 Dylan & the Toolbox
: I've read through the DIRM, but didn't find the answer to this question:
: how much of the Toolbox will be covered by classes that come with the
: Apple Dylan implementation?

The Dylan quicktime code referenced in this group a few days ago

"The source code is also available at MacTech Magazine's ftp
site,
ftp.netcom.com->pub/xplain/Source/10.09/DylanMoviePlayer.sit."

will give you an idea of the minimum that will be available.  The
interface looks a lot like MCL to me.  An example from that file is
below.  Note the use of with-stack-structure to set up a rect, toolbox
calls (e.g. GetMovieBox), and creating a window (make (<window>)).

//opens up a window containing a view onto the movie
define method make-windows (document :: <movie-document>)
  let movie-bounds =
       with-stack-structure(box(<qd-rect>),
                            begin
                              GetMovieBox(document.movie, box);
                              get-rect(box);
                            end);
  let movie-size = point(movie-bounds.width, movie-bounds.height);

  document.movie-view := make(<movie-view>,
                              location: $zero-point,
                              size: movie-size);

  let window = make(<window>,
                    location: point(100, 100),
                    size: movie-size,
                    next-handler: document,
                    target-view: document.movie-view,
                    has-go-away: #t);

  add-sub-view(window.root-view, document.movie-view);

  open(window);

  set-movie-to-view(document.movie-view, document.movie);  
  make-document-title(document);
end method



Sat, 01 Mar 1997 22:40:24 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Dylan/Toolbox Interface

2. PowerMacMindy & Toolbox wrappers

3. MacMETH & ToolBox

4. The Tk ToolBox & ToolChest call for code

5. Whole screen &custom sounds in FO Dylan

6. MacOS X, WallStreet & Dylan

7. FO Dylan & LRU files lists

8. Namespaces, Flexibility & Dylan

9. Dylan & MOP

10. Dylan & object/relational mapping

11. make & limited in Dylan

12. Dylan coding style & best practices

 

 
Powered by phpBB® Forum Software