home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / next / programm / 5184 < prev    next >
Encoding:
Internet Message Format  |  1992-07-22  |  1.1 KB

  1. Path: sparky!uunet!rosie!aozer
  2. From: aozer@next.com (Ali Ozer)
  3. Newsgroups: comp.sys.next.programmer
  4. Subject: Re: Detecting Color or Mono System
  5. Keywords: Color, Monochrome, Screen Detection
  6. Message-ID: <4401@rosie.NeXT.COM>
  7. Date: 23 Jul 92 02:47:03 GMT
  8. References: <1992Jul22.160814.7483@cs.rose-hulman.edu>
  9. Sender: news@NeXT.COM
  10. Organization: Next Computer, Inc.
  11. Lines: 16
  12.  
  13. In article <1992Jul22.160814.7483@cs.rose-hulman.edu> Andy McConnell writes:
  14. >I am trying to detect whether an app is running on a color or monchrome  
  15. >station.  I culd use a simple boolean function, if one is available, but I  
  16. >can't seem to find one.
  17.  
  18. Rather than determining if you are on a color screen, use the 
  19. -(BOOL)shouldDrawColor method in View; it's a lot more flexible. It will
  20. return YES or NO depending on whether the output device is capable of color.
  21. If drawing, it will tell you if the current window's depth limit is such that
  22. it can display color; if printing, it will tell you if the printer can do 
  23. color. It works with dynamic-depth windows as well.
  24.  
  25. Ali, Ali_Ozer@NeXT.com
  26.  
  27.  
  28.  
  29.