• 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
Weird behavior when adding subview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Weird behavior when adding subview
      • From: "John C. Randolph" <email@hidden>
    • Re: Weird behavior when adding subview
      • From: Mike Abdullah <email@hidden>
    • Re: Weird behavior when adding subview
      • From: August Trometer <email@hidden>
  • Prev by Date: Re: CoreDate: Can't reassign an object to a different store once it has been saved.
  • Next by Date: Why do people in the UK put a u in the word color?
  • Previous by thread: break on @throw (was Re: CoreDate: Can't reassign an object to a different store once it has been saved.)
  • Next by thread: Re: Weird behavior when adding subview
  • Index(es):
    • Date
    • Thread