home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!caen!batcomputer!ghost.dsi.unimi.it!piovanel
- From: piovanel@ghost.dsi.unimi.it (marco piovanelli)
- Subject: Color Picker Package availability
- Keywords: Color Picker, System 6.0, Gestalt
- Organization: Computer Science Dep. - Milan University
- Date: Thu, 5 Nov 1992 14:26:58 GMT
- Message-ID: <1992Nov5.142658.7138@ghost.dsi.unimi.it>
- Summary: How to tell if the Color Picker is there?
- Lines: 20
-
- A tiny question about the Color Picker package. How can I tell
- if Color Picker calls (notably GetColor) are available?
- I tried various solutions:
-
- 1. gHasColorPicker := gHasColorQuickDraw;
-
- Wrong. The color picker is also available on non-CQD (68000) machines,
- not only under sys 7.0 but (seemingly) under sys 6.0.x too.
-
- 2. gHasColorPicker := TrapAvailable(_Pack12);
-
- I'm afraid this would set gHasColorPicker to TRUE in any case;
- the package calls seem to be always implemented.
-
- 3. gHasColorPicker := GetResource('PACK', 12) <> NIL;
-
- While this one seems to work, how about compatibility with future systems?
-
- Any better solution? A gestalt selector (hi Rene)?
- Please reply by email. Thank you in advance. -- marco
-