Weird behavior when adding subview
Weird behavior when adding subview
- Subject: Weird behavior when adding subview
- From: Eamon Ford <email@hidden>
- Date: Thu, 20 Apr 2006 15:25:37 -0700
I have a custom view in which I programmatically create an
NSTextField and add it as a subview, in the drawRect: method. But
whenever the view is redrawn (i.e. I resize the window, etc.), it
seems to redraw the text field over itself. Sorry, I couldn't think
of a better explanation, but here's a screenshot of what's happening:
<http://homepage.mac.com/eamonford/screenshot.png>
I'm sure there's a simple solution, but I'm not very experienced.
What would be the best way to fix this?
Thanks.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden