Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!tut.cis.ohio-state.edu!unmvax!ogccse!blake!mrc@Tomobiki-Cho.CAC.Washington.EDU
From: mrc@Tomobiki-Cho.CAC.Washington.EDU (Mark Crispin)
Newsgroups: comp.sys.next
Subject: changing cursor
Message-ID: <3883@blake.acs.washington.edu>
Date: 3 Oct 89 01:03:29 GMT
Sender: news@blake.acs.washington.edu
Organization: Mendou Zaibatsu, Tomobiki-Cho, Butsumetsu-Shi
Lines: 28


     I would like to change the cursor in my application to a wait
cursor when I know the program is going to do something
time-consuming.

     I didn't see any method in Application that seemed to set the
application's cursor.  The spec sheet for Cursor didn't seem to be
very helpful; the push and pop methods are interesting, but isn't it a
bit backwards to be doing this from the cursor instead of the
application?  [Yes, I know, everything on the NeXT is backwards :-)]

     What I want to do is something like:

	[NXApp pushCursor:NXWait];	// save current cursor, put up wait
	... time-consuming code --
	[NXApp popCursor];		// restore cursor

     Even better would be some way to say that whenever any button is
pushed the wait cursor should be put up until the button's method
finishes, or even better, a way to say "put up a wait cursor any time
we're not in the event loop"...

Mark Crispin / 6158 Lariat Loop NE / Bainbridge Island, WA 98110-2020
mrc@CAC.Washington.EDU / MRC@WSMR-SIMTEL20.Army.Mil / (206) 842-2385
Atheist & Proud / 450cc Rebel pilot -- a step up from 250cc's!!!
tabesaserarenakerebanaranakattarashii...kisha no kisha ga kisha de kisha-shita
sumomo mo momo, momo mo momo, momo ni mo iroiro aru
uraniwa ni wa niwa, niwa ni wa niwa niwatori ga iru