• 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 odd background colour behaviour
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextField odd background colour behaviour


  • Subject: Re: NSTextField odd background colour behaviour
  • From: Peter Hudson <email@hidden>
  • Date: Sat, 10 Dec 2011 16:22:12 +0000

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

  • Follow-Ups:
    • Re: NSTextField odd background colour behaviour
      • From: Ross Carter <email@hidden>
References: 
 >NSTextField odd background colour behaviour (From: Peter Hudson <email@hidden>)
 >Re: NSTextField odd background colour behaviour (From: Ross Carter <email@hidden>)

  • Prev by Date: Re: NSTextField odd background colour behaviour
  • Next by Date: AU Cocoa GUI sometimes not showing up
  • Previous by thread: Re: NSTextField odd background colour behaviour
  • Next by thread: Re: NSTextField odd background colour behaviour
  • Index(es):
    • Date
    • Thread