-
Recent Posts
Recent Comments
Archives
- February 2023
- July 2022
- December 2021
- November 2021
- April 2021
- January 2019
- November 2018
- April 2018
- June 2014
- November 2013
- October 2013
- September 2013
- July 2013
- March 2013
- January 2013
- November 2012
- October 2012
- August 2012
- March 2012
- January 2012
- December 2011
- October 2011
- September 2011
- August 2011
- July 2011
Categories
Meta
Monthly Archives: August 2011
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
CALayer’s Parallel Universe
Ever tried to animate a UIView’s position? It’s easy, using UIView animation class methods like animateWithDuration:animations: and friends. Simply change the position inside the “animations” block, et voila, a pretty animation with the duration of your choice. But have you … Continue reading
Integers in Your Collections (NSNumber’s not my friend)
Early on in the days of learning Cocoa, I remember coming across a situation where I had a bunch of integers that I needed to keep around, but wasn’t immediately sure about how to go about doing that using an … Continue reading
Posted in Code
Tagged CFArray, CFDictionary, Collections, NSArray, NSDictionary, objective-c, optimization
Leave a comment
Things I Learned at Siggraph
Our legions of dedicated fans (hi Mom) may have noticed a dry spell in the posts of late. This is partly because I spent last week in beautiful Vancouver, B.C., attending the annual Siggraph conference. In between time spent watching … Continue reading
Quick Tip: Drawing Right Side Up With Core Text
Anyone who has decided to explore using Core Text on iOS has probably noticed that everything is drawn upside down. This is because Core Graphics contexts that have been created with functions provided by UIKit (such as UIGraphicsBeginImageContext, or the … Continue reading
Localizing Arbitrary Strings the Scripty Way
I bet you saw my post about localizing US states and said to yourself, “Ha! That little sed script won’t do much for arbitrary strings!” You’re a jerk, but yes, you’re right. Before I give it away, does anyone see … Continue reading
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