5/12/2023 0 Comments Disable image for nsbutton mac![]() In my old code I used -drawTitle:withFrame:inView: and used my own attributed string with the customized disabled color if the button was disabled. The one issue I ran into is that I could no longer specify a custom color for disabled text. ![]() (Overriding either of these causes the focus ring to look like crap - see radar listed above). Because of custom focus ring issues (rdar://problem/29465363) I started converting one of our main NSButton subclasses to use layers instead of having the cell or image do any drawing in -drawRect: or drawTitle:WithFrame:inView. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |