Re: NSCell interiorBackgroundStyle wrong?
Re: NSCell interiorBackgroundStyle wrong?
- Subject: Re: NSCell interiorBackgroundStyle wrong?
- From: Kyle Sluder <email@hidden>
- Date: Fri, 31 May 2013 13:25:26 -0700
On Fri, May 31, 2013, at 11:47 AM, Seth Willits wrote:
>
> Perhaps only an Apple employee like Corbin can really answer this...
>
>
> Consider an NSCell where:
> • backgroundStyle is always set to NSBackgroundLight
> • highlightColorWithFrame:inView: returns nil so that the cell itself draws no highlight
> • drawsBackground is NO
>
> In this case, shouldn't the interiorBackgroundStyle be NSBackgroundLight
> when the cell is both highlighted and not highlighted?
If you override -highlightColorWithFrame:inView:, you also need to
override -interiorBackgroundStyle. NSCell doesn't look at the return
value of -highlightColorWithFrame:inView: to determine whether it has a
light or dark background.
Furthermore, a lot of the NSCell methods regarding highlighting have
been completely bypassed, without any mention of this fact (Apple folk,
see rdar://problem/12011090, which deals with NSTextCell in particular
completely avoiding any methods with "hilight" in their name).
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden