home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / mac / programm / 19688 < prev    next >
Encoding:
Text File  |  1992-12-11  |  1.7 KB  |  34 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!think.com!yale.edu!news.yale.edu!YaleVM.YCC.Yale.Edu!GREMICF
  3. From: GREMICF@YaleVM.YCC.Yale.Edu (M. David Greenspon)
  4. Subject: Machine Icons
  5. Message-ID: <168BAA257.GREMICF@YaleVM.YCC.Yale.Edu>
  6. Sender: news@news.yale.edu (USENET News System)
  7. Nntp-Posting-Host: yalevm.ycc.yale.edu
  8. Organization: Yale University
  9. Date: Fri, 11 Dec 92 11:32:39 EST
  10. Lines: 22
  11.  
  12. When you choose "About This Macintosh" from the Apple Menu in the finder, you
  13. get, among other things, an icon that looks like your machine.  These icons
  14. are stored as ICN#s in the System file.  When I call Gestalt with a selector
  15. of gestaltMachineIcon on my PB160, I get 49031; sure enough, ICN# 49031
  16. (= -16505) in the System file looks like a PowerBook.
  17.  
  18. Is there a list anywhere of Machine Icon numbers for _all_ Macs?  I don't have
  19. access to every kind of Mac ever made to go around running my program on.  In
  20. general, most of the icons do (sort of) look like the Macs I think they're
  21. supposed to represent, but in some cases I'm not sure exactly which is which.
  22. I'd like to be sure that I really am showing the "official" ones in all cases.
  23. The newest list of undocumented Gestalt stuff posted here doesn't say anything
  24. about this.  I can't find a Tech Note about it.  I'm doing this because I'd
  25. like to determine various things about the system I'm on:  for example, if I
  26. get an icon that looks like a Quadra, I'll assume the presence of an FPU.
  27.  
  28. Just kidding!  ;-) :-]  (I can just see the frantic letters pouring in from
  29. people who were too aghast to read further... ;~> )  I just want to display
  30. info about various Macs, and I thought it would be nice to display the icon.
  31. Thanks in advance for any info.
  32.  
  33. --David
  34.