[comp.sys.mac] Cursing at cursors

bskendig@phoenix.Princeton.EDU (Brian Kendig) (09/02/89)

Sorry for the cross-posting, but this article applies to all three groups.

I found several CURS (cursor) resources in the SuperCard application that
represent different positions in the rotation of Earth; when shown in sequence,
they turn the cursor into a spinning globe (instead of a spinning watch or
beach ball).

I thought this was rather neat, so I used ResEdit to copy the resources to my
Finder, renumber them, and put them in place of the Finder's spinning watch.
I made sure the resource ID's of the cursors matched their references in the
'acur' (animated cursor) resource.

Now, when the Finder in supposed to display the spinning watch (which I changed
to the globe), the cursor turns into garbage (random bit patterns).

What must I do to change the stopwatch into the globe?

Then, I went into the HyperCard application's resources (again with ResEdit)
to look for the beach ball cursors, in the hopes I could change them to
the globe, at least.  They weren't there!  Aren't cursors supposed to be
stored in resources?  If so, why can't I find them in HyperCard?  How can I
access my spinning globe from HyperCard?

It shouldn't be this difficult!
Help!

     << Brian >>

-- 
| Brian S. Kendig       |  I feel more like I   | bskendig                   |
| Computer Engineering  |  did when I got here  | @phoenix.Princeton.EDU     |
| Princeton University  |       than I do now.  | @PUCC.BITNET               |
| Systems Engineering, NASA Space Station Freedom / General Electric WP3     |

thecloud@dhw68k.cts.com (Ken McLeod) (09/05/89)

In article <10222@phoenix.Princeton.EDU> bskendig@phoenix.Princeton.EDU (Brian Kendig) writes:
>
>Now, when the Finder in supposed to display the spinning watch (which I changed
>to the globe), the cursor turns into garbage (random bit patterns).

  The globe cursors probably have their Purgeable bits set. Go into ResEdit
and do a Get Info on each, and check out the resource attributes.

>Then, I went into the HyperCard application's resources (again with ResEdit)
>to look for the beach ball cursors, in the hopes I could change them to
>the globe, at least.  They weren't there!  Aren't cursors supposed to be
>stored in resources?  If so, why can't I find them in HyperCard?  How can I
>access my spinning globe from HyperCard?

  HyperCard is not a typical Macintosh application. Yes, cursors are
supposed to be stored in resources. You can't find them in HyperCard
because they aren't stored in resources. Make sense? :-)

  Fortunately, it's easy to have your spinning globe in HyperCard... just
paste the cursors into your Home stack (or whatever stack you use them in),
and add the line "set cursor <resource id>" whenever you want to change
the cursor. The spinning cursor will probably coincide with some sort of
repeat loop in your script; just increment <resource id> at each iteration.

-- 
==========     .......     =============================================
Ken McLeod    :.     .:    UUCP: ...{spsd,zardoz,felix}!dhw68k!thecloud
==========   :::.. ..:::   INTERNET: thecloud@dhw68k.cts.com
                ////       =============================================