Drawing text in an NSButtonCell subclass
Drawing text in an NSButtonCell subclass
- Subject: Drawing text in an NSButtonCell subclass
- From: Glen Simmons <email@hidden>
- Date: Wed, 11 Jun 2003 08:45:40 -0500
Hi all,
I'm subclassing NSButtonCell to do some custom drawing, including
drawing an attributed string with -drawAtPoint:. It's working fine
except for one thing: when the row is selected, I'd like my text to be
inverted (white on whatever the highlight color is) like the other
columns, but that's not happening. My text stays black.
Is there a way I can find out if my row is selected and draw the text
white?
Should I be drawing the text in some other way that will automatically
get me this behavior?
TIA,
Glen
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.