• 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: drawRect doesn't get called when using CoreAnimation?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: drawRect doesn't get called when using CoreAnimation?


  • Subject: Re: drawRect doesn't get called when using CoreAnimation?
  • From: Scott Anguish <email@hidden>
  • Date: Sun, 20 Jul 2008 17:15:42 -0400


On 20-Jul-08, at 3:40 PM, Rick Mann wrote:

I have Wants Core Animation Layer checked in IB on my view, and when I do, my view subclass' drawRect doesn't get called. Is there any way to have it also called (preferably after CA draws my layers)?


No.

If you're using layer-backed views (you set wants layer, but not the layer) you should only use view drawing code. You should not add layers to it. In fact, ignore the layers entirely.

If you're using layer-hosting (you create the layer and set it for the view, then turn on wants layer) you should only use layer drawing code. You should ignore the view drawRect: entirely. You should not add subviews to the hosting view.

Mostly this is just for experimentation, so I can draw while figuring out how to convert my drawing to CA.



_______________________________________________

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


References: 
 >drawRect doesn't get called when using CoreAnimation? (From: Rick Mann <email@hidden>)

  • Prev by Date: NSThread and UI
  • Next by Date: Re: newbie question: NSURLConnection delegation and "method instance"
  • Previous by thread: drawRect doesn't get called when using CoreAnimation?
  • Next by thread: Re: drawRect doesn't get called when using CoreAnimation?
  • Index(es):
    • Date
    • Thread