PDA

View Full Version : Transparent Background on NSCollectionView




buckyballs
Mar 12, 2009, 07:12 PM
Hey

Is it possible to have an NSCollectionView with a transparent background?

I've had a look and a play, but I can't get it to work :(



kainjow
Mar 12, 2009, 09:09 PM
Have you tried setBackgroundColors: with an [NSColor clearColor]? Have you tried subclassing and overriding isOpaque?

buckyballs
Mar 13, 2009, 03:32 PM
Have you tried setBackgroundColors: with an [NSColor clearColor]? Have you tried subclassing and overriding isOpaque?

Found the problem. It's embedded in a NSScrollView, and while the NSCollectionView background was clear, the NSScrollView background wasn't!

Thanks for your help!