• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSColor with alpha problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >NSColor with alpha problem (From: Dominic Edward Feira <email@hidden>)

  • Prev by Date: Newbie: Easy "mouseEntered" Question...
  • Next by Date: Re: xCode 1.2
  • Previous by thread: NSColor with alpha problem
  • Next by thread: Re: NSColor with alpha problem
  • Index(es):
    • Date
    • Thread