Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!usc!apple!Apple.COM!lsr From: lsr@Apple.COM (Larry Rosenstein) Newsgroups: comp.sys.mac.programmer Subject: Re: MacApp Question (view resources and PoseModally) Message-ID: <6514@internal.Apple.COM> Date: 5 Feb 90 19:33:47 GMT References: <131035@sun.Eng.Sun.COM> Sender: usenet@Apple.COM Organization: Objects-R-Us, Apple Computer, Inc. Lines: 30 In article <131035@sun.Eng.Sun.COM> nano%urbina@Sun.COM (Fernando Urbina) writes: > BringToFront(fReceiveView.GetWindow.fWMgrWindow); I would use fReceiveView.GetWindow.Open here. > 3. In order to "update" the fReceiveView's TStaticText > that contains the communication status, I override > PoseModally. You could install a co-handler when you bring up the dialog (using TApplication.InstallCoHandler). Cohandlers are subclasses of TEvtHandler and if you set their fIdleFreq field, their DoIdle method will get called when the application is idle. (The fIdleFreq is that minimum time between calls to DoIdle.) TApplication.PollEvent calls TApplication.Idle, which gives idle time to all objects that need it. You can also do this processing in your dialog view, by making a subclass of TDialogView. Then you don't have to install a cohandler; as long as the dialog is active it's DoIdle method will get called. Larry Rosenstein, Apple Computer, Inc. Object Specialist Internet: lsr@Apple.com UUCP: {nsc, sun}!apple!lsr AppleLink: Rosenstein1