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 <rosscarter...@me.com> 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 (Cocoa-dev@lists.apple.com) >> >> 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: >> http://lists.apple.com/mailman/options/cocoa-dev/rosscarterdev%40me.com >> >> This email sent to rosscarter...@me.com > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com