• 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: Kai BrĂ¼ning <email@hidden>
  • Date: Tue, 18 Dec 2007 17:30:19 +0100

>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)

Best
Kai
_______________________________________________

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: setWantsLayer causes text fields to draw focus ring incorrectly
      • From: Nik Youdale <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>)

  • Prev by Date: Re: cancelOperation: does not work for trapping the escape key
  • Next by Date: Re: cancelOperation: does not work for trapping the escape key
  • Previous by thread: Re: setWantsLayer causes text fields to draw focus ring incorrectly
  • Next by thread: Re: setWantsLayer causes text fields to draw focus ring incorrectly
  • Index(es):
    • Date
    • Thread