• 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
Bifurcating text color in QL on X.6, how?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bifurcating text color in QL on X.6, how?


  • Subject: Bifurcating text color in QL on X.6, how?
  • From: Eden Smallwood <email@hidden>
  • Date: Thu, 01 Jan 2015 13:25:41 -0800

	Greetings, O readers of the sacred list !

	Merry Xmas, and a Happy New Macintosh, btw.


	On X.6 Snow Leopard, a QuickLook preview executed from the Finder is displayed in a window with a translucent black background.  The text color is white, ergo.

	On the same system, same file, same QL generator, the preview shown in the Finder’s ‘Info’ window is drawn on an opaque white background, the text is black.

	How does Apple know to make the text white in one place and black in the other?

	If you’re thinking "Wh on Bk and Bk on Wh, therefore XOR to the rescue", I’ve tried every conceivable setting of cgBlendMode and nsCompositingMode and nothing has any effect whatsoever on the text color which results in the window.

	Or perhaps it’s possible to detect the “background color” of the current CGContext or NSContext?  But this notion doesn’t seem to exist.  The context’s APIs are 99% set(), and basically no get().  And if the background color is an aspect of the containing window, well, fine, but a QL plugin has no pointer to its containing window.  Argh.

	As it stands now, my text is invisible in one place or the other place.

	Please shock me with what a simple thing I’m missing somewhere, thanks.
_______________________________________________

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: Bifurcating text color in QL on X.6, how?
      • From: Quincey Morris <email@hidden>
    • Re: Bifurcating text color in QL on X.6, how?
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Image Sizing
  • Next by Date: Re: Bifurcating text color in QL on X.6, how?
  • Previous by thread: Re: Application Crashing Under Mavericks, but not Yosemite (Entitlements Issue?)
  • Next by thread: Re: Bifurcating text color in QL on X.6, how?
  • Index(es):
    • Date
    • Thread