[comp.sys.next] Global Variables in an App

u-sgreen%peruvian.utah.edu@cs.utah.edu (Scott Greenman) (12/21/90)

I am creating an Application that includes several .nib files and many .[hm]
files.  What is the best way to make variables global to all of the .[hm]
files?  Currently, I have a delegate to NXApp.  To get the value of one of
these globals, I send a message:

[[NXApp delegate] var_name]

where var_name is the name of the global I want.  The delegate object keeps
these variables as instance variables.  This is pretty messy, and I'm looking
for a better way.  Any suggestions?

Scott Greenman
Univ of Utah