Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!hellgate.utah.edu!peruvian.utah.edu!u-sgreen From: u-sgreen%peruvian.utah.edu@cs.utah.edu (Scott Greenman) Newsgroups: comp.sys.next Subject: Global Variables in an App Message-ID: <1990Dec20.171546.16210@hellgate.utah.edu> Date: 21 Dec 90 00:15:46 GMT Organization: University of Utah CS Dept Lines: 13 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