convenience methods
convenience methods
- Subject: convenience methods
- From: Julien Palmas <email@hidden>
- Date: Mon, 4 Apr 2005 10:11:20 +0900
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 ?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden