home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / mac / oop / macapp3 / 201 < prev    next >
Encoding:
Internet Message Format  |  1992-12-15  |  1022 b 

  1. Path: sparky!uunet!stanford.edu!apple!applelink.apple.com
  2. From: SCHALK1@AppleLink.Apple.COM (Euro Tech Svcs, OOP Spec)
  3. Newsgroups: comp.sys.mac.oop.macapp3
  4. Subject: Re: Getting idle time in a vie
  5. Message-ID: <724446629.4345396@AppleLink.Apple.COM>
  6. Date: 15 Dec 92 19:01:00 GMT
  7. Sender: daemon@Apple.COM
  8. Organization: AppleLink Gateway
  9. Lines: 22
  10.  
  11. Rich,
  12.  
  13. You could attach a IdleBehaviour to the window that contains the view. Give
  14. this behaviour a reference to the view(s) that need idle time and call the
  15. TView.DoIdle() method MANUALLY for each of those views.
  16.  
  17. If you don't want to add a behaviour, implement this in the TWindow.DoIdle()
  18. method and use FindSubViews().
  19.  
  20. By the way, the cohandler chain works as well, but is not the preferred way of
  21. doing things (maybe you get the crash because you forget to remove the
  22. cohandler when you close the window?).
  23.  
  24. Anyone out there with a more elegant suggestion?
  25.  
  26. Regards,
  27.  
  28. Jeroen Schalk
  29. Object Programming Specialist
  30. European Technology Services
  31. Apple Computer Europe
  32.  
  33.