• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSCell interiorBackgroundStyle wrong?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSCell interiorBackgroundStyle wrong?
      • From: Seth Willits <email@hidden>
References: 
 >NSCell interiorBackgroundStyle wrong? (From: Seth Willits <email@hidden>)

  • Prev by Date: Reachability sample app
  • Next by Date: Re: NSCell interiorBackgroundStyle wrong?
  • Previous by thread: NSCell interiorBackgroundStyle wrong?
  • Next by thread: Re: NSCell interiorBackgroundStyle wrong?
  • Index(es):
    • Date
    • Thread