3

I'm beginner with programming for OS X and I have problems with setting NSImageView transparency.

In iOS it was quite simple, there's property in UIImageView called alpha and I could change it and animate it. (like imageView.alpha = 0.5)

How can I achieve the same with NSImageView?

Zev Eisenberg
  • 8,080
  • 5
  • 38
  • 82
Wojtek
  • 1,006
  • 11
  • 30

1 Answers1

8

set the property alphaValue of a NSView that has a layer!

[view setWantsLayer:YES];
[view setAlphaValue:0];
Daij-Djan
  • 49,552
  • 17
  • 113
  • 135