Re: Selection highlight in NSTextFieldCell

2009-08-26 Thread Kyle Sluder
On Aug 26, 2009, at 6:34 AM, bryscomat wrote: Yes, I came across this in the documentaion. After playing with it for a little bit (and a couple other methods like it) I thought it was just not honored in an NSTextFieldCell. That method never gets called when I override it. I have overridde

Re: Selection highlight in NSTextFieldCell

2009-08-26 Thread bryscomat
Have you tried the documentation? NSTextFieldCell is an NSCell, right? -[NSCell highlightColorWithFrame:inView:] Yes, I came across this in the documentaion. After playing with it for a little bit (and a couple other methods like it) I thought it was just not honored in an NSTextFieldC

Re: Selection highlight in NSTextFieldCell

2009-08-26 Thread I. Savant
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 document

Re: Selection highlight in NSTextFieldCell

2009-08-25 Thread bryscomat
I appreciate the responses, and I think Kyle nailed it. It just doesn't work on a black background. I wasn't looking to change the user's preferences, just the way the selection was handled in this particular part of the app. I dug a little further, and it looks like you're right Graham. Th

Re: Selection highlight in NSTextFieldCell

2009-08-25 Thread Kyle Sluder
On Aug 25, 2009, at 6:28 PM, Graham Cox wrote: I'd suggest you don't. The colour is set by the user in their System Preferences. Encountering a different colour leads to confusion because sometimes unusual colours have specific meanings. In your case it doesn't, so let the user's preferenc

Re: Selection highlight in NSTextFieldCell

2009-08-25 Thread Graham Cox
On 26/08/2009, at 6:23 AM, bryscomat wrote: How do I change the selection highlight color for an NSTextFieldCell being edited? I'm using a transparent window and would like to change the highlight to a light gray instead of the default light blue, I'd suggest you don't. The colour is se

Selection highlight in NSTextFieldCell

2009-08-25 Thread bryscomat
How do I change the selection highlight color for an NSTextFieldCell being edited? I'm using a transparent window and would like to change the highlight to a light gray instead of the default light blue, ___ Cocoa-dev mailing list (Cocoa-dev@lists.a