• 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
NSCell interiorBackgroundStyle wrong?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSCell interiorBackgroundStyle wrong?


  • Subject: NSCell interiorBackgroundStyle wrong?
  • From: Seth Willits <email@hidden>
  • Date: Fri, 31 May 2013 11:47:25 -0700

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?

Trivial testing shows that it is actually NSBackgroundDark when the cell is highlighted and Light when not. In the case of NSTextField, this results in the wrong text color being used when the cell is highlighted (it uses white instead of black).


--
Seth Willits




_______________________________________________

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: Kyle Sluder <email@hidden>
  • Prev by Date: Drawing strings from a menu item's keyEquivalent
  • Next by Date: Reachability sample app
  • Previous by thread: Re: Drawing strings from a menu item's keyEquivalent
  • Next by thread: Re: NSCell interiorBackgroundStyle wrong?
  • Index(es):
    • Date
    • Thread