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