NSColor with alpha problem
NSColor with alpha problem
- Subject: NSColor with alpha problem
- From: Dominic Edward Feira <email@hidden>
- Date: Mon, 26 Apr 2004 02:00:55 -0400 (EDT)
I have run into a rather annoying little problem. I'm not sure if I'm
the annoying problem or if NSColor is to blame.
I am trying to do some drawing with an alpha channel. Anytime I call:
NSColor* myNSColor = [NSColor colorWithCalibratedRed: 1.0 green: 0.5
blue:0.0 alpha:0.75];
[myNSColor set];
I get a segmentation fault. If I set the alpha value to 1.0 it runs
fine. I'm not sure what I'm missing, but...a segmentation fault isn't
the most graceful way for cocoa to handle this.
-- Dominic Feira
email@hidden
_______________________________________________
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.