This manual page is for Mac OS X version 10.6.3

If you are running a different version of Mac OS X, view the documentation locally:

  • In Terminal, using the man(1) command

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

  • For more information about the manual page format, see the manual page for manpages(5).

  • For more information about this technology, look for other documentation in the Apple Reference Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.



find(n)                                          [incr Tcl]                                          find(n)



____________________________________________________________________________________________________________

NAME
       find - search for classes and objects

SYNOPSIS
       itcl::find option ?arg arg ...?
____________________________________________________________________________________________________________


DESCRIPTION
       The  find  command is used to find classes and objects that are available in the current interpreter.
       Classes and objects are reported first in the active namespace, then in all other namespaces  in  the
       interpreter.

       The  option  argument determines what action is carried out by the command.  The legal options (which
       may be abbreviated) are:

       find classes ?pattern?
              Returns a list of [incr Tcl] classes.  Classes in the current namespace are listed first, fol-lowed followed
              lowed by classes in all other namespaces in the interpreter.  If the optional pattern is spec-ified, specified,
              ified, then the reported names are compared using the rules of the "string match" command, and
              only matching names are reported.

              If  a  class  resides  in  the  current  namespace  context,  this  command reports its simple
              name--without any qualifiers.  However, if the pattern contains :: qualifiers, or if the class
              resides in another context, this command reports its fully-qualified name.  Therefore, you can
              use the following command to obtain a list where all names are fully-qualified:
              itcl::find classes ::*

       find objects ?pattern? ?-class className? ?-isa className?
              Returns a list of [incr Tcl] objects.  Objects in the current namespace are listed first, fol-lowed followed
              lowed by objects in all other namespaces in the interpreter.  If the optional pattern is spec-ified, specified,
              ified, then the reported names are compared using the rules of the "string match" command, and
              only  matching names are reported.  If the optional "-class" parameter is specified, this list
              is restricted to objects whose most-specific class  is  className.   If  the  optional  "-isa"
              parameter  is specified, this list is further restricted to objects having the given className
              anywhere in their heritage.

              If an object resides in the  current  namespace  context,  this  command  reports  its  simple
              name--without  any  qualifiers.   However,  if  the  pattern contains :: qualifiers, or if the
              object resides in another context, this command reports its fully-qualified name.   Therefore,
              you can use the following command to obtain a list where all names are fully-qualified:
              itcl::find objects ::*


KEYWORDS
       class, object, search, import



itcl                                                 3.0                                             find(n)

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation to the Tcl project.
Bug reports
Report bugs in the functionality of the described tool or API to Apple through Bug Reporter and to the Tcl project through their bug reporting page.
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.

Did this document help you? Yes It's good, but... Not helpful...