• 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: setWantsLayer causes text fields to draw focus ring incorrectly
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setWantsLayer causes text fields to draw focus ring incorrectly


  • Subject: Re: setWantsLayer causes text fields to draw focus ring incorrectly
  • From: Nik Youdale <email@hidden>
  • Date: Wed, 19 Dec 2007 11:17:26 +1100

On 19/12/2007, at 3:30 AM, Kai BrĂ¼ning wrote:
On 12/17/07 3:32 PM, Matt Neuburg said:

Merely by telling my window's contentView to setWantsLayer: YES, the text
fields in that window are no longer drawing their focus ring correctly (a
thin blue line appears inside the field, but the thick blue line outside the
field is no longer drawn). What can I do about this? Thx - m.

Similarly, NSPathControl does not draw correctly when layers are on.
And other views too. :( After seeing that merely flipping this BOOL
caused so many problems, I decided to wait until 10.5.x before playing
with it more.

Besides seeing the focus ring problem, too, I have one more effect to contribute: I gave a view inside a split view the wantsLayer attribute. This view in turn contains a table view, which is resized together with its container view. Now while resizing the pane with the mouse, the table view starts to flicker during redraw. That is, it draws its background, makes that visible, then draws the content text for each move of the mouse.


The split view is custom made, so it is possible that the problem does not happen with NSSplitView, but I doubt it. All I do is calling [pane setFrame].

Lets hope for 10.5.x (x > 1)

To add to this, I've used setWantsLayer: (toggled in IB) for a little container view which contains some buttons. Sometimes for no apparent reason, some of the buttons would show up and the others wouldnt. It would change from day to day. It seems a little buggy to say the least._______________________________________________


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: 
 >setWantsLayer causes text fields to draw focus ring incorrectly (From: Matt Neuburg <email@hidden>)
 >Re: setWantsLayer causes text fields to draw focus ring incorrectly (From: "Sean McBride" <email@hidden>)
 >Re: setWantsLayer causes text fields to draw focus ring incorrectly (From: Kai BrĂ¼ning <email@hidden>)

  • Prev by Date: Re: Gluing two images together question...
  • Next by Date: Re: Creating Gray Scale Image give big leak...
  • Previous by thread: Re: setWantsLayer causes text fields to draw focus ring incorrectly
  • Next by thread: Gluing two images together question...
  • Index(es):
    • Date
    • Thread