home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / programm / 14696 < prev    next >
Encoding:
Internet Message Format  |  1992-08-29  |  1.9 KB

  1. Path: sparky!uunet!sun-barr!ames!data.nas.nasa.gov!taligent!apple!NewsWatcher!user
  2. From: REEKES@applelink.apple.com (Jim Reekes)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: vblCount and Macintosh Programming Secrets
  5. Message-ID: <REEKES-280892134956@90.10.20.67>
  6. Date: 28 Aug 92 20:48:38 GMT
  7. References: <Bt3p2H.Ap6@taligent.com> <BtGsJ9.92@grayhawk.rent.com>
  8. Sender: usenet@Apple.COM
  9. Followup-To: comp.sys.mac.programmer
  10. Organization: Apple Computer, Inc.
  11. Lines: 33
  12.  
  13. In article <BtGsJ9.92@grayhawk.rent.com>, rich@grayhawk.rent.com (Richard
  14. Harms) wrote:
  15. > Keith Rollin (keith@taligent.com) wrote:
  16. > : Good eye! How does the following look to you:
  17. > : 
  18. > : oldA5 = SetA5(myTaskPtr->A5);
  19. > : if (CrsrBusy == 0)
  20. > :     SpinCursor(32);
  21. > : myTaskPtr->theTask.vblCount = pDesiredCount;
  22. > : (void) Seta5(oldA5);
  23. > Thanks... actually, if I had a choice though, I'd set vblCount to 1 to make
  24. > sure the cursor gets spun as close as possible to when it should've... I'd
  25. > hate to see a cursor not spin smoothly... :)  And then just set it to 
  26. > pDesiredCount when I've actually gotten it to spin.
  27. > One question close to this subject though, is it possible to set up A5 in a
  28. > memory manager purgeproc? TN #303 just makes reference to IM and TNs to see
  29. > how to do it, but does the memeory manager pass in anything similar to the
  30. > VBL task record which you can grab your A5 out of?
  31.  
  32. In the case of being called at non-interrupt time, you can use CurrentA5
  33. in low memory.  This is OK from your grow zone or purge proc, but not from
  34. a VBL or anyother interrupt routine.
  35.  
  36.  
  37. -----------------------------------------------------------------------
  38. Jim Reekes, Polterzeitgeist  |     Macintosh Toolbox Engineering
  39.                              |          Sound Manager Expert
  40. Apple Computer, Inc.         | RAll opinions expressed are mine, and do
  41. 20525 Mariani Ave. MS: 81-KS |   not necessarily represent those of my
  42. Cupertino, CA 95014          |       employer, Apple Computer Inc.S
  43.