home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / mac / programm / 15344 < prev    next >
Encoding:
Text File  |  1992-09-11  |  802 b   |  33 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!amgen!nuntius
  3. From: Michael Brennan <mikeb@sam.amgen.com>
  4. Subject: Re: Set/Get Cursor
  5. Message-ID: <1992Sep10.184138.3458@amgen.com>
  6. Sender: news@amgen.com
  7. Nntp-Posting-Host: swalker
  8. Organization: Amgen
  9. X-Useragent: Nuntius v1.1
  10. References: <1992Sep1.202106.2865@informix.com>
  11. Date: Thu, 10 Sep 1992 18:41:38 GMT
  12. Lines: 19
  13.  
  14. In article <1992Sep1.202106.2865@informix.com> Bill Stackhouse,
  15. sbill@informix.com writes:
  16. >Why does the following cause EvenBetterBusError detect a NIL pointer
  17. >problem?
  18. >
  19. >   SetCursor(*GetCursor(iBeamCursor));
  20. >
  21.  
  22. Here's the code I use.  It works for me:
  23.  
  24.     Cursor        myCursor;
  25.     CursHandle    hCurs = 0L;
  26.  
  27.     hCurs = GetCursor( iBeamCursor );
  28.     myCursor = **hCurs;
  29.  
  30.     SetCursor( &myCursor );
  31.     DisposeHandle( hCurs );
  32.     ShowCursor();
  33.