discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

is it a bug or a feature?


From: Lloyd Dupont
Subject: is it a bug or a feature?
Date: Tue, 26 Jul 2005 12:48:03 +1000

if I use predefined color, such as
 
NSColor* c = [NSColor blackColor];
 
it will return a GSCalibratedWhiteColor which is a light subclass of NSColor.
therefore, later, when I call
 
[c getRed:&red green:&green blue:&blue alpha:&alpha]
 
I get the default behavior, which is:
 
  [NSException raise: NSInternalInconsistencyException
       format: @"Called getRed:green:blue:alpha: on non-RGB colour"];
 
A bit annoying....
So now I wonder should I:
 
1. consider this a bug and try to fix it?
2. consider this a feature and stop using named color?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]