Re: CALayer and Memory Management

2008-12-15 Thread David Duncan
On Dec 14, 2008, at 5:08 PM, Dimitri Bouniol wrote: I'm at a loss when it comes to releasing CALayers. Read and follow the memory management guidelines, CALayers follow them perfectly. http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/Tasks/MemoryManagementRules.html

CALayer and Memory Management

2008-12-14 Thread Dimitri Bouniol
I'm at a loss when it comes to releasing CALayers. Since you can only create a layer with [CALayer layer] (docs advise not to use [[CALayer alloc] init]), I would assume that the instance is automatically qutoreleased. However, after looking through apple's sample code on a menu built with