Re: drawRect doesn't get called when using CoreAnimation?
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