Skip navigation.
 
mlconvenience methods
FROM : Julien Palmas
DATE : Mon Apr 04 03:11:20 2005

I've been wondering how to write a convenience class methods.
I've got an implementation that works, but wanted to know if it was the
right way to do it ...

what about this to add a new color to the NSColor class ?

+ (NSColor *)lightRedColor {
   return [[NSColor colorWithCalibratedHue:0.0 saturation:0.1
brightness:1.0 alpha:1.0] autorelease];
}

is that ok ?

Related mailsAuthorDate
mlconvenience methods Julien Palmas Apr 4, 03:11
mlRe: convenience methods Nick Zitzmann Apr 4, 03:24
mlRe: convenience methods Ondra Cada Apr 4, 03:28
mlRe: convenience methods Ondra Cada Apr 4, 03:35
mlRe: convenience methods Julien Palmas Apr 4, 03:44
mlRe: convenience methods John C. Randolph Apr 5, 00:39