home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / mac / programm / 18168 < prev    next >
Encoding:
Internet Message Format  |  1992-11-09  |  1.5 KB

  1. Path: sparky!uunet!mcsun!sun4nl!tuegate.tue.nl!svin09!svin09.info.win.tue.nl!robert
  2. From: robert@wsooti11.info.win.tue.nl (Robert Lukassen)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Button() not callable from interrupt ?
  5. Message-ID: <ROBERT.92Nov9103642@wsooti11.info.win.tue.nl>
  6. Date: 9 Nov 92 09:36:42 GMT
  7. Sender: news@svin09.info.win.tue.nl
  8. Distribution: comp
  9. Organization: Eindhoven University of Technology, the Netherlands
  10. Lines: 19
  11.  
  12. Hi,
  13.  
  14. I ran into a bit of trouble the other day when I tried to read the state of the
  15. mouse-button from an interrupt-routine. I know that the state of the mouse-button
  16. is represented by a single bit in some low-memory variable and this works well, but
  17. why does (the old version of) Inside Macintosh claims that Button() can move or purge
  18. memory. That is absolutely insane! A simple fetch of a low-memory variable can't
  19. trigger a memory move or memory purge. What are they doing that makes calling
  20. Button() so dangerous?
  21.  
  22. Robert
  23. --
  24. +--------------------------------------+--------------------------------------+
  25. |  Robert 'MacBear' Lukassen           |  Eindhoven University of Technology  |
  26. |  Email: robert@info.win.tue.nl       |  The Netherlands                     |
  27. +--------------------------------------+--------------------------------------+
  28. | 'So logically ?  If she weighs the same as a duck, she's made of wood...    |
  29. |  And therefore ?  ...a WITCH !!!!'   - Monty Python, the Holy Grail.        |
  30. +-----------------------------------------------------------------------------+
  31.