alexrozanski/PXSourceList

Keep selected items highlighted with blue even when lost focus

UXDart opened this issue · 3 comments

subject ^, when the control lost focus it shows as gray, I want to keep the blue highlight color.
any idea how to do that?

TIA

You mean the selection looks like this?

viewbasedsourcelist

That's standard behaviour controlled by NSOutlineView when the source list isn't the key view. I think you'd have to do some work with NSTableRowViews to get the behaviour that you want.

yes, it shows like "disabled blue".
I found a way overwritten highlightSelectionInClipRect: method, but for some reason it works in the sample project and in my project the method highlightSelectionInClipRect is never called... just to be sure I copy paste the control from the sample to my project and it never gets called... any idea?

Thanks!

oh... I think it is because the default sample is cell based.