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

Re: NSTextField highlight


  • Subject: Re: NSTextField highlight
  • From: edward taffel <email@hidden>
  • Date: Tue, 03 Mar 2015 12:08:48 -0500

in case anyone is following:

from within a method defined on my subclass of NSTextField i sent:

[[self cell] setBackgroundStyle:interface.isDark() ? NSBackgroundStyleDark : NSBackgroundStyleLight];

no apparent affect—text color, background color, or highlight.

thanks again, ken, for mentioning it.


> On Mar 2, 2015, at 5:54 PM, edward taffel <email@hidden> wrote:
>
>
>> On Mar 2, 2015, at 5:34 PM, Ken Thomases <email@hidden> wrote:
>>
>> On Mar 2, 2015, at 3:51 PM, edward taffel <email@hidden> wrote:
>>
>>> has anyone had success in changing NSTextField’s default highlight? e.g., given bright text on a dark background, the default highlight is not serviceable. i had hoped subclassing NSTextFieldCell & overriding -(id)_highlightColorForCell:(NSCell*)cell would work, as it does in instances of NSTextFieldCell in NSTableView. googling has not returned any simple direction—perhaps i’ve missed something.
>>
>> Have you set the cell's backgroundStyle to NSBackgroundStyleDark?
>>
>> Regards,
>> Ken
>>
>
> i haven’t fiddled w/ NSBackgroundStyleDark yet: i’ll give it a try & see what happens; but, given what i read in the doc, & as i’m dealing w/ a shade range—not just black or white, i may still need to look for a method to affect the highlight.
>
> many thanks,
> edward
>
>
> _______________________________________________
>
> 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

_______________________________________________

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


References: 
 >NSTextField highlight (From: edward taffel <email@hidden>)
 >Re: NSTextField highlight (From: Ken Thomases <email@hidden>)
 >Re: NSTextField highlight (From: edward taffel <email@hidden>)

  • Prev by Date: Re: Mac OS X - AppDelegate applicationDidFinishLaunching
  • Next by Date: Re: Mac OS X - AppDelegate applicationDidFinishLaunching
  • Previous by thread: Re: NSTextField highlight
  • Next by thread: Create a NSURL as a way to validate urls - not working
  • Index(es):
    • Date
    • Thread