MacTrove  — Classic Macintosh Archive
 
 Home Software Hardware Docs Magazines Forums Search
Search:   Software, forums, magazines & more

Spin Cursor 101 C

File spin-cursor-101-c.hqx
Size 98.0 KB
Category Development
↓ Download spin-cursor-101-c.hqx

Enjoying MacTrove? Anonymous downloads are free and unlimited. Create a free account to track favorites, contribute corrections, and join the community chat.

About

NOTICE: This should replace the older version of the library This is the SpinCursor library, AGAIN ... UGH. Some of you may have already noticed there was no protection against installing more than once, and so the cursor jumped all over the place before finally dying a horribly yucky death. I installed a global variable called gCursInstalled, and this will fix it; now you can call BeginSpinning() and StopSpinning() without worry as to what will happen. Some notes for first-time users (read: people unaware of what a VBL task can do) o VBL-based spinning cursors will probably continue to spin even after the Macintosh has crashed. During true Mac crashes, however, the cursor will not MOVE anywhere, it will just spin. Good? Bad? You be the judge. o It would be a nice gesture for you to call StopSpinning() if you receive a suspend event, and then BeginSpinning() (if necessary) when you receive the resume event. Otherwise, you may be "giving the gift of spinning love" to other processes; this is defined in the dictionary as "NOT NICE".

MacTrove — Classic Macintosh Archive — Full site | Software | Search
Classic version — compatible with older browsers.