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

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.

其他提示

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];
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top