Question

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

Was it helpful?

Solution 3

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.

OTHER TIPS

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];
[imageBrowserView setValue:[NSColor blueColor] forKey:IKImageBrowserCellsOutlineColorKey];
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top