Re: Unwanted transparency in custom view
Re: Unwanted transparency in custom view
- Subject: Re: Unwanted transparency in custom view
- From: Chris Ridd <email@hidden>
- Date: Mon, 17 Jun 2002 17:14:07 +0100
On 17/6/02 5:03 pm, Ken Tozier <email@hidden> wrote:
>
- (void) setRGBColor:(NSDictionary *) inDict
>
{
>
[[NSColor colorWithCalibratedRed:[[inDict objectForKey:@"Red"]
>
floatValue]
>
green:[[inDict objectForKey:@"Green"] floatValue]
>
blue:[[inDict objectForKey:@"Blue"] floatValue]
>
alpha:1] set];
>
}
Is it worth writing 1.0 to tell the compiler to pass a float instead of an
int?
Cheers,
Chris
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.