How do I change IKImageBrowserView's selection highlight color

1.2k Views Asked by At

When you select an item in IKImageBrowserView it is highlighted grey around the edges. How do I change the color of this?

enter image description here

3

There are 3 best solutions below

0
On BEST ANSWER

So I was able to achive what I was looking for by going the complex route that combinatorial suggested (Thanks!). I implemented the custom IKImageBrowserView and IKImageBrowserCell classes from the sample project here: http://developer.apple.com/library/mac/#/legacy/mac/library/samplecode/ImageKitDemo/Introduction/Intro.html

Too bad there isn't an easier way to do this but this will do the trick for now.

2
On

Take a look at the "View Options Keys" in the IKImageBrowserView documentation. I think that IKImageBrowserSelectionColorKey should do the trick.

So you code will be something like this in awakeFromNib of your view controller:

[imageBrowserView setValue:[NSColor blueColor] forKey:IKImageBrowserSelectionColorKey];
0
On
[imageBrowserView setValue:[NSColor blueColor] forKey:IKImageBrowserCellsOutlineColorKey];