Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnewsm!cbnewsk!ech From: ech@cbnewsk.att.com (ned.horvath) Newsgroups: comp.sys.mac.programmer Subject: Re: Floating windows and gophers Message-ID: <1991May2.151929.29624@cbnewsk.att.com> Date: 2 May 91 15:19:29 GMT References: <6176@trantor.harris-atd.com> Organization: AT&T Bell Laboratories Lines: 21 From article <6176@trantor.harris-atd.com>, by dfranck@x102c.harris-atd.com (franck deniz 01591): > I have created 2 (with the potential of multiple) floating windows > in an appliction. I want a ~periodic~ method to be executed within > each window (ex print a string to the window) simultaneously, or at > least appear that way to the user (it is not necessarily the same > string) . I am currently doing this by overwriting the dwadle() > method. However, I have noticed that in CApplication that Idle() > executes dwadle only along a single object's chain of command (ie first > the objects gopher, then its supervisor, on up the bureacacy), but > does not go horizontally to other objects... What you may want to do is put your floater updates into CChores, attached to gApplication->itsIdleChores, and override the Application's Dawdle() to ensure that the Chores get time often enough. If you're concerned about "simutaneity," zap both floaters from a single Chore. This may not be the only way, but it works... -- =Ned Horvath= ehorvath@attmail.com