home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!stanford.edu!apple!applelink.apple.com
- From: SCHALK1@AppleLink.Apple.COM (Euro Tech Svcs, OOP Spec)
- Newsgroups: comp.sys.mac.oop.macapp3
- Subject: Re: Getting idle time in a vie
- Message-ID: <724446629.4345396@AppleLink.Apple.COM>
- Date: 15 Dec 92 19:01:00 GMT
- Sender: daemon@Apple.COM
- Organization: AppleLink Gateway
- Lines: 22
-
- Rich,
-
- You could attach a IdleBehaviour to the window that contains the view. Give
- this behaviour a reference to the view(s) that need idle time and call the
- TView.DoIdle() method MANUALLY for each of those views.
-
- If you don't want to add a behaviour, implement this in the TWindow.DoIdle()
- method and use FindSubViews().
-
- By the way, the cohandler chain works as well, but is not the preferred way of
- doing things (maybe you get the crash because you forget to remove the
- cohandler when you close the window?).
-
- Anyone out there with a more elegant suggestion?
-
- Regards,
-
- Jeroen Schalk
- Object Programming Specialist
- European Technology Services
- Apple Computer Europe
-
-