Re: NSTextField: mystery line drawing outside focus ring?
Re: NSTextField: mystery line drawing outside focus ring?
- Subject: Re: NSTextField: mystery line drawing outside focus ring?
- From: "Ken Ferry" <email@hidden>
- Date: Wed, 26 Sep 2007 23:43:02 -0700
This looks like a symptom of treating the rect passed to drawRect: as
if it is the bounds of the view.
Does your custom view draw a border around itself? Are you drawing
the border around the rect passed to drawRect:? That won't work -
that rectangle is a region within the view that is dirty and should be
redrawn. You likely want to position the border with respect to [self
bounds].
On 9/26/07, Steve Christensen <email@hidden> wrote:
> I have a set of NSTextFields that are subviews of a custom view that
> has a colored background. The text fields have their background color
> set to the same color as the superview's background color. When their
> window is initially displayed, a black line is drawn around the first
> text field, just outside the focus ring. Tabbing to other text fields
> draws other lines and redrawing their superview erases the mystery
> lines.
>
> Has anybody seen this sort of behavior and/or know what I can do to
> keep them from appearing? I've attached a mini-screenshot showing
> what I'm seeing.
>
> steve
>
>
> _______________________________________________
>
> 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