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