Design Element
Comment on "CoreAnimation Sample Code: ArtGallery"
by ssp — May 26
Hey Scott,

the comments in your code suggests that you're not really convinced about the -cgImage method in your NSImage Extras category. How far does that go? In particular: What about memory usage/leakage?

According to Google, problems with that seem to be quite common when people want to set the contents of their CALayer with an NSImage. And from what I could tell, the 500MB of memory my app leaked (you can see the memory blocks with ObjectAlloc but the Leaks tool won't list them) for drawing a few NSBezierPaths into a layer all come from the TIFFRepresentiations created when getting the CGImageRef.
Back to "CoreAnimation Sample Code: ArtGallery"
Design Element

Copyright © Scott Stevenson 2004-2015