🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac.oop.macapp3
Article #148

Re: Getting idle time in a vie

#148
From: Euro Tech Svcs, OOP Spec
Date: Tue, 15 Dec 1992 19:01
22 lines
1054 bytes
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
 
Technical Details
Message-ID: <724446629.4345396@AppleLink.Apple.COM>
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!apple!applelink.apple.com

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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