🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.programmer
Article #188

Re: Detecting Color or Mono System

#188
From: Ali Ozer
Date: Thu, 23 Jul 1992 02:47
13 lines
1098 bytes
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
Technical Details
Message-ID: <4401@rosie.NeXT.COM>
Path: arc1-ca.pugleaf.net!sparky!uunet!rosie!aozer
References: <1992Jul22.160814.7483@cs.rose-hulman.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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