Re: NSColor with alpha problem
Re: NSColor with alpha problem
- Subject: Re: NSColor with alpha problem
- From: Ali Ozer <email@hidden>
- Date: Sun, 25 Apr 2004 23:22:10 -0700
This definitely should not segfault. Perhaps some other memory
corruption earlier is causing this? Can you reproduce this in a
smaller program?
Ali
Begin forwarded message:
From: Dominic Edward Feira <email@hidden>
Date: April 25, 2004 23:00:55 PDT
To: email@hidden
Subject: NSColor with alpha problem
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.
_______________________________________________
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.