home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / programm / 14377 < prev    next >
Encoding:
Text File  |  1992-08-22  |  1.5 KB  |  38 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!gatech!concert!samba!usenet
  3. From: Bathsheba.Grossman@bbs.oit.unc.edu (Bathsheba Grossman)
  4. Subject: Re: color dialogs
  5. Message-ID: <1992Aug23.041935.25900@samba.oit.unc.edu>
  6. Sender: usenet@samba.oit.unc.edu
  7. Nntp-Posting-Host: lambada.oit.unc.edu
  8. Organization: Extended Bulletin Board Service
  9. References: <l97tauINN2nl@utkcs2.cs.utk.edu>
  10. Date: Sun, 23 Aug 1992 04:19:35 GMT
  11. Lines: 25
  12.  
  13. In article <l97tauINN2nl@utkcs2.cs.utk.edu> strickli@cs.utk.edu (Michael C. Stricklin) writes:
  14. >Is it honestly true that there is no trap to load a color dialog
  15. >box from a resource?  My superior intuitive skills tell me that it
  16. >would be called 'GetCDialog,' 
  17. Not that I know of - Apple asleep at the switch again.
  18.  
  19. >beautiful colors.  Unfortunately, when I try to call it a second time,
  20. >it bombs out during the NewCDialog call.  Am I allocating memory
  21. >improperly?  
  22.  
  23. Nope - you need to call CloseDialog instead of DisposDialog.  DisposDialog
  24. assumes that you let NewCDialog allocate the dialog record, and frees it;
  25. since in fact you passed a static record, chaos results.
  26. Read the IM 1 descriptions of CloseDialog and DisposDialog one more time.
  27. (But avert your eyes immediately afterwards, because CouldDialog isn't
  28. supported anymore.  B)
  29.  
  30. -Sheba
  31. sheba@mohlsun.physics.upenn.edu
  32.  
  33. --
  34.    The opinions expressed are not necessarily those of the University of
  35.      North Carolina at Chapel Hill, the Campus Office for Information
  36.         Technology, or the Experimental Bulletin Board Service.
  37.            internet:  bbs.oit.unc.edu or 152.2.22.80
  38.