• 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: Selection highlight in NSTextFieldCell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Selection highlight in NSTextFieldCell


  • Subject: Re: Selection highlight in NSTextFieldCell
  • From: "I. Savant" <email@hidden>
  • Date: Wed, 26 Aug 2009 06:57:25 -0400

On Aug 26, 2009, at 1:30 AM, bryscomat wrote:

So if there's no way to do that, on to my next question. Is there a way to change the color the highlighted portion of text, i.e. the text is normally white, but the highlighted portion of the text will be black.


Have you tried the documentation? NSTextFieldCell is an NSCell, right?

-[NSCell highlightColorWithFrame:inView:]

One thing you could try (to still use the user's preferred color) is to invert the selection color like a film negative.

Another thing is playing with Quartz compositing types (when you - highlight:withFrame:inView: ) and maybe even a filter or two. The goal would be to modulate the color.

These would be preferable to gray, which indicates selected text in a control that does not have focus (can I edit? does copy/paste work? what's going on here?).

--
I.S.




_______________________________________________

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: Selection highlight in NSTextFieldCell
      • From: bryscomat <email@hidden>
References: 
 >Selection highlight in NSTextFieldCell (From: bryscomat <email@hidden>)
 >Re: Selection highlight in NSTextFieldCell (From: Graham Cox <email@hidden>)
 >Re: Selection highlight in NSTextFieldCell (From: bryscomat <email@hidden>)

  • Prev by Date: Re: How is "Open Recent >" identified and populated?
  • Next by Date: Re: [IPhone 3.0] How do I make a UITextField the first responder?
  • Previous by thread: Re: Selection highlight in NSTextFieldCell
  • Next by thread: Re: Selection highlight in NSTextFieldCell
  • Index(es):
    • Date
    • Thread