Drawing partially transparent gradient

Christiaan Hofman <[email protected]>
Newsgroups gmane.comp.macosx.devel
Message-ID <[email protected]>
I am trying to draw an NSGradient starting from a light gray (though  
that's irrelevant) to clearColor over a (light) background. However,  
for some reason the gradient becomes dark in the middle, while near  
the ends it looks as I expected. I already tried setting the  
compositeOperation explicitly to NSCompositeSourceOver, but that did  
not help (other operations are certainly wrong). Also playing with the  
CG blend mode got me nowhere.

Would anyone have any idea what I could have done wrong?

thanks,
Christiaan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.