Re: NSTextField odd background colour behaviour
Re: NSTextField odd background colour behaviour
- Subject: Re: NSTextField odd background colour behaviour
- From: Ross Carter <email@hidden>
- Date: Sat, 10 Dec 2011 15:31:43 -0500
If the field editor is active it will be firstResponder. The sheet will tell you who is firstResponder.
If that is what is happening (granted, a long shot), make some other text field firstReponder and see what happens.
On Dec 10, 2011, at 11:22 AM, Peter Hudson wrote:
> The text field is in a sheet and the order of the code that shows the sheet and then sets the bg Color has been the same for a long time. Strangely, exacly the same ui and code is used elsewhere and it works perfectly.
>
> How could I check if the field editor was covering the text field ? How could I disappear it ?
>
> Peter
>
>
>
> On 10 Dec 2011, at 15:48, Ross Carter <email@hidden> wrote:
>
>> Just to make sure: are you certain that the text field is not being edited (and therefore obscured by the field editor) when you set the bg color?
>>
>>
>> On Dec 10, 2011, at 3:50 AM, Peter Hudson wrote:
>>
>>> Hi All
>>>
>>> I have an NSTextField in an app. For some years I have set the background colour with, not unsurprisingly, setBackgroundColor:
>>>
>>> Recently I noticed that when attempting to set the BG colour instead of the whole area of the text field changing colour,
>>> I get a thin line of colour changing at the very top of the field.
>>>
>>> I've deleted the original text field object in the nib and dropped in a new one.
>>> Strangely, I have several other text fields with which I can set the BG colour without any problem.
>>>
>>> Its just this one text field where I have the problem ……
>>>
>>> xcode 4 / 10.7.2
>>>
>>> Peter_______________________________________________
>>>
>>> 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