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