Michael on October 22nd, 2010

I keep getting asked the same question and each time, even though I know the basics, I stumble my way to a precarious explanation. Even my grandmother who can’t operate a toaster oven would realize that there’s something shady about my arguments. So this time, I decided to write it down and here it goes… [...]

Continue reading about NULL vs. nil vs. Nil vs. NSNull

Michael on October 14th, 2010

I ran into an interesting performance problem today. I was working on an algorithm to process text data files. My first stab at the design went through my data file starting from the first character and on, and output a string built based on some rules applied to each character. I ended up with a [...]

Continue reading about Building strings backward

Michael on October 7th, 2010

In the process of doing research on encrypting persistent stores for the upcoming Pro Core Data for iOS, I stumbled upon a neat recent feature that Apple calls “data protection”. In essence, if you have enabled data protection for your device as explained here, then you can tell iOS to use hardware-level encryption for any file, [...]

Continue reading about Core Data – Somewhat encrypted persistent store