home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / programm / 13965 < prev    next >
Encoding:
Internet Message Format  |  1992-08-13  |  1.6 KB

  1. Path: sparky!uunet!usc!sdd.hp.com!think.com!eplunix!mrn
  2. From: mrn@eplunix.UUCP (Mark R. Nilsen)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: THINK C Question... a beginner's blues...
  5. Message-ID: <1260@eplunix.UUCP>
  6. Date: 13 Aug 92 07:24:33 GMT
  7. References: <1992Aug13.013640.29223@magnus.acs.ohio-state.edu>
  8. Organization: Eaton-Peabody Lab, Boston, MA
  9. Lines: 32
  10.  
  11. in article <1992Aug13.013640.29223@magnus.acs.ohio-state.edu>, dmoney@magnus.acs.ohio-state.edu (Dean R Money) says:
  12. > Nntp-Posting-Host: bottom.magnus.acs.ohio-state.edu
  13.  
  14. > I can't seem to get my programs to open desk accesories correctly. I'm
  15. > using OpenDeskAcc(accName). The interesting thing is that the desk
  16. > accessory does actually open,
  17.  
  18. I had this problem when I started as well.  Can't remeber how I
  19. figured it out though.  Anyway,  what was happening with me, and
  20. probably you, was the handling of update events.  When you get an
  21. update event for a window call:
  22.  
  23. BeginUpdate(YourWindowPtr);
  24.  
  25. ... Update, drawing, blitting, blabing ...
  26.  
  27. EndUpdate(YourWindowPtr);
  28.  
  29. The ToolBox call BeginUpdate and EndUpdate removes the update event
  30. from the queue, otherwise it stays there and blocks your DA.  Now
  31. update events are posted in a different way than other events
  32. (mouseDown, keyDown) and aren't realy in the FIFO queue.  I forget
  33. all the details, but I'll look them up if you send me some e-mail.
  34.  
  35. Anyway that should fix you problem.
  36.  
  37. --Mark. 
  38. -- 
  39. Mark Nilsen.  == mrn%eplunix.UUCP@eddie.mit.edu
  40. The world has changed and we can no longer think that logic is going to
  41. prevail ... 
  42.    - A. Scott Crossfield, Proceeding of X-15 first flight anniversary. 
  43.