Re: NSColor with alpha problem
Re: NSColor with alpha problem
- Subject: Re: NSColor with alpha problem
- From: Andreas Mayer <email@hidden>
- Date: Mon, 26 Apr 2004 11:49:30 +0200
Am 26.04.2004 um 09:18 schrieb Dominic Edward Feira:
I forgot to do a retain on the NSColor I was creating. For some reason
not doing the retain didn't show up as a problem until I wanted to use
an alpha value...weird.
The reason might be that the color is already used somewhere else and
you get a shared copy. In that case it would be retained even if you
didn't call retain yourself.
Andreas
_______________________________________________
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.