I have a NSCollectionViewItem with NSImageView in it.
I want to have a shadow around the image. Once it is selected, I want the image to have shadow and a border. Currently, NSImageView gets a border around the image.
How can I achieve shadow + border on selection? Seems like the border around image sets up correctly, but the border sets up around the image view.
[self.templateImageView setWantsLayer:YES];
self.templateImageView.layer.borderWidth = 0.0;
self.templateImageView.layer.borderColor = borderColor.CGColor;
self.templateImageView.layer.masksToBounds = YES;
[self.templateImageView.layer setShadowColor: [NSColor blackColor].CGColor];
[self.templateImageView.layer setShadowOpacity:0.8];
[self.templateImageView.layer setShadowRadius:5.0];