Tag Archives: Beginners

Mistakes Were Made: Audio and ARC

There’s a mistake I have, to my own great embarrassment, made twice, so I think it’s worth writing up for posterity. This one’s brief: you can laugh at me and move on. Under ARC, AVAudioPlayers don’t retain themselves while playing. … Continue reading

Posted in Explanation | Tagged , , , , , , , | Leave a comment

Mistakes Were Made: Description Isn’t Enough

It’s my turn to take a crack at a “Mistakes Were Made” post, and this one happens to be about my first post on this blog. If you didn’t happen to catch that one – it was a post about … Continue reading

Posted in Code | Tagged , , , | 2 Comments

CALayer Internals: Contents

It’s right there in the CALayer documentation: contents An object that provides the contents of the layer. Animatable. @property(retain) id contents Discussion A layer can set this property to a CGImageRef to display the image as its contents. The default value is nil. There’s … Continue reading

Posted in Explanation | Tagged , , , | 1 Comment

Mistakes Were Made: Initialize Your Locals

“Mistakes Were Made” may or may not end up being a post series where we talk about actual things we have done wrong, and the lessons thereby learned.  The uncertainty is about whether revealing all this stuff will make us … Continue reading

Posted in Code | Tagged , , | Leave a comment

CALayers v. CGLayers, or, Which Layer, Player?

What’s the Deal? An evergreen source of confusion for developers new to graphics on iOS is the existence of multiple Apple-provided graphics frameworks, and multiple “layer” objects within those frameworks.  We’re told to use Core Animation for compositing and animation, … Continue reading

Posted in Explanation | Tagged , , , | 2 Comments

(More) Descriptive Logging

Update 9/30/11: This blog post isn’t quite complete. Have a look at Description Isn’t Enough, and remember to use debugDescription as well. Joel and I have been discussing the kinds of content we’d like to work on putting in our … Continue reading

Posted in Code | Tagged , , | 2 Comments