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