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: Steve Christensen <email@hidden>
- Date: Thu, 27 Sep 2007 07:09:43 -0700
On Sep 26, 2007, at 5:19 PM, Jerry Krinock wrote:
On 2007 Sep, 26, at 7:51, Steve Christensen wrote:
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.
Not quite, but I've caused similar artifacts in my custom views by
cropping the size of the view, making changes to what remains and
THEN invoking -setNeedsDisplay. Stuff which was inside the view
before but outside the view after the crop remains on the screen.
It makes sense that redrawing the superview fixes the problem.
Look at the whole life cycle of those NSTextFields.
Except that the NSTextFields are not custom classes; they are simply
subviews of a custom NSView. They each have a custom NSFormatter
attached, but that's it.
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