CLIM mail archive

[Prev][Next][Index][Thread]

Re: quickie question on command object access



[I'm assuming that, with CLIM2 implementations available for the majority
of Common Lisp implementations, unless someone states otherwise, CLIM
questions/comments refer to CLIM2.  (I realize this is probably pretty
irritating for MCL users).]

Curt Eggemeyer writes:
 > Is there a neat clim function for returning all of the command-objects for
 > a given application (even if it has multiple command-tables)?
 > 
 > If not, just how to you get a command object? I see no reference in the clim
 > manual on how you can retrieve a command object given the command name and its
 > command-table (how do you get that too?), even though the reverse is done with
 > clim:command-name!

A Command object is simply a list of a command name and some arguments
(i.e. (com-foo 1 2)).  Because of the inclusion of arguments, commands
objects are dynamic creatures that are created while running a CLIM
program.  The command name is something like com-foo (a symbol).

It makes sense to statically look at all of the commands (as command names)
in a command table, but I don't think it is true for command objects.

As you probably already know, MAP-OVER-COMMAND-TABLE-COMMANDS :Inherited t
will map over all of the command names in a command table.  

Dan

References:

Main Index | Thread Index