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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to