[myView setLayer:theLayer];
[myView setWantsLayer:YES];

You might want to read the Core Animation Programming Guide. You can find a link to it at the top if the CALayer class docs. It will explain a lot about how to use CALayers.


On Apr 15, 2008, at 4:49 PM, Greg Sabo wrote:

I retained the layer object, and now the program no longer crashes! I'll be sure to read up more on retaining objects, as that is clearly an important concept.

Now just to get the circle to display. I'm not quite sure what you mean by "set the layer to a view to be displayed," which means that I'm probably not doing that. How would I go about doing this?

_______________________________________________

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