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.



XtAppInitialize(3)                              XT FUNCTIONS                              XtAppInitialize(3)



NAME
       XtAppInitialize, XtVaAppInitialize - initialize, open, or close a display

SYNTAX
       Widget XtAppInitialize(XtAppContext* app_context_return, String application_class, XrmOptionDescRec*
              options, Cardinal num_options, int* argc_in_out, String* argv_in_out, String* fall-back_resources, fallback_resources,
              back_resources, ArgList args, Cardinal num_args);

       Widget XtVaAppInitialize(XtAppContext* app_context_return, String application_class, XrmOptionDe-scRec* XrmOptionDescRec*
              scRec* options, Cardinal num_options, int* argc_in_out, String* argv_in_out, String* fall-back_resources, fallback_resources,
              back_resources, ...);

ARGUMENTS
       app_context_return
                 Specifies the application context.

       application_class
                 Specifies the class name of this application, which usually is the generic name for all
                 instances of this application.

       options   Specifies how to parse the command line for any application-specific resources.  The
                 options argument is passed as a parameter to XrmParseCommand.  For further information, see
                 Xlib - C Language X Interface.

       num_options
                 Specifies the number of entries in the options list.

       argc_in_out
                 Specifies a pointer to the number of command line parameters.

       argv_in_out
                 Specifies the command line parameters.

       fallback_resources
                 Specifies resource values to be used if the application class resource file cannot be
                 opened or read, or NULL.

       args      Specifies the argument list to override any other resource specification for the created
                 shell widget.

       num_args  Specifies the number of entries in the argument list.

       ...       Specifies the variable argument list to override any other resource specification for the
                 created shell widget.

DESCRIPTION
       The XtAppInitialize function calls XtToolkitInitialize followed by XtCreateApplicationContext, then
       calls XtOpenDisplay with display_string NULL and application_name NULL, and finally calls XtAppCre-ateShell XtAppCreateShell
       ateShell with application_name NULL, widget_class applicationShellWidgetClass, and the specified args
       and num_args and returns the created shell. The modified argc and argv returned by XtDisplayInitial-ize XtDisplayInitialize
       ize are returned in argc_in_out and argv_in_out. If app_context_return is not NULL, the created
       application context is also returned. If the display specified by the command line cannot be opened,
       an error message is issued and XtAppInitialize terminates the application. If fallback_resources is
       non-NULL, XtAppSetFallbackResources is called with the value prior to calling XtOpenDisplay.

       XtAppInitialize and XtVaAppInitialize have been superceded by XtOpenApplication and XtVaOpenApplica-tion XtVaOpenApplication
       tion respectively.

SEE ALSO
       XtOpenApplication(3Xt), XtVaOpenApplication(3Xt)
       X Toolkit Intrinsics - C Language Interface
       Xlib - C Language X Interface



X Version 11                                     libXt 1.0.5                              XtAppInitialize(3)

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 with the feedback links below.
Bug reports
Report bugs in the functionality of the described tool or API through Bug Reporter.
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...