문제

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