home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / mac / programm / 22153 < prev    next >
Encoding:
Internet Message Format  |  1993-01-25  |  1.3 KB

  1. Path: sparky!uunet!gumby!wupost!howland.reston.ans.net!usc!davidp
  2. From: davidp@stealth.usc.edu (David Peterson)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: SetDItem and control panels...
  5. Date: 25 Jan 1993 13:37:24 -0800
  6. Organization: University of Southern California, Los Angeles, CA
  7. Lines: 23
  8. Distribution: world
  9. Message-ID: <1k1mikINN3af@stealth.usc.edu>
  10. Reply-To: davidp@usc.edu
  11. NNTP-Posting-Host: stealth.usc.edu
  12.  
  13.  
  14. Is it a no-no to use SetDItem on the user items you have in a control
  15. panel to set them to a routine that draws them?
  16.  
  17. I was trying to do this so that my user items would get updated automagically,
  18. but the Finder would crash about half the time when my control panel was
  19. being updated.
  20.  
  21. Using the same code, but calling it myself in response to an update event,
  22. seems to work. Whats the deal? I didn't see anything about this in any of
  23. the technotes (or did I just miss it). 
  24.  
  25. Does cdev code not stay locked while the control panel is open? The Finder
  26. only seemed to crash when I had done something else like open another app
  27. or switch to a screen saver, just moving Finder windows on and off the control
  28. panel worked okay.
  29.  
  30. I can draw the stuff myself if need be, I was just wondering if this behavior
  31. is known, or if my code is screwed up.
  32.  
  33. Any hints?
  34.  
  35. -dave.
  36.