Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!ucsd!dog.ee.lbl.gov!hellgate.utah.edu!peruvian.utah.edu!u-sgreen From: u-sgreen%peruvian.utah.edu@cs.utah.edu (Scott Greenman) Newsgroups: comp.sys.next Subject: help on delegates Message-ID: <1990Sep13.145805.1776@hellgate.utah.edu> Date: 13 Sep 90 20:58:05 GMT Distribution: usa Organization: University of Utah CS Dept Lines: 25 I am a new NeXT programmer and I have a few questions about delegates (in particular, Application delegates): 1) Is it correct that I can put any method in my delegate definition, then send a message to NXApp with that method name and it will get executed? 2) Is it possible for the delegate to override a method that the object it is a delegate for normally responds to? If so, is there any way for the delegate to execute the method defined by the object it is a delegate for? What I'm trying to do is use a delegate of an Application to do two things: a) hold global variables and have methods to query or set these variables b) execute methods of another object when the application first starts and just before it quits. In relation to b above, how can I send messages to an object that is instantiated in IB and so loaded with the "LoadNibSection" command? Do I set up an outlet from the class that is the delegate? Thanks for any help. Scott Greenman Univ of Utah