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

Re: Weird behavior when adding subview


  • Subject: Re: Weird behavior when adding subview
  • From: "John C. Randolph" <email@hidden>
  • Date: Fri, 21 Apr 2006 03:01:08 -0700


On Apr 20, 2006, at 3:25 PM, Eamon Ford wrote:

I programmatically create an NSTextField and add it as a subview, in the drawRect: method.

That's your problem, right there. Never manipulate the view hierarchy inside of -drawRect:.


-jcr


John C. Randolph <email@hidden> (408) 914-0013 Roaming Cocoa Engineer, Available for your projects at great Expense and Inconvenience.



_______________________________________________
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: Uli Kusterer <email@hidden>
References: 
 >Weird behavior when adding subview (From: Eamon Ford <email@hidden>)

  • Prev by Date: Re: Why do people in the UK put a u in the word color?
  • Next by Date: Finding all apps for
  • Previous by thread: Re: Weird behavior when adding subview
  • Next by thread: Re: Weird behavior when adding subview
  • Index(es):
    • Date
    • Thread