I recently began experiencing my system fans kicking in and running all the time. The fans began running so much that I almost didn’t notice them any more. When I pulled the Activity Monitor up, the md worker was using over 100% of my system resources consistently.

After looking up what md worker does, it appears to be a process spun off by spotlight to index your drive for quick searching. Even after a reboot, the fans would kick back in after a short idle time of maybe a minute. This process was seriously heating up the mac.


Continue reading

I started using Kiwi to drive unit tests on my most recent project. Kiwi is an excellent BDD (Behavior Driven Development) framework that helps drive your code design by making test expectations very clear. It greatly increases the readability of your unit tests. The Kiwi library only requires implementation files to write each spec (test). Per the documentation, you follow these steps to create a spec: Create a .m file (no header required) Add an import for the Kiwi library #import Kiwi.
Continue reading

When I am rapidly prototyping new features, I frequently need to blow out the entire app structure from the simulator and start fresh. To do this manually, I would follow the following steps. From Simulator (when simulator is open)*: 1. Go to Menu Bar 2. Click iOS Simulator 3. Click Reset Content and Settings Benefits of this approach: Easy to do/remember Blows out all settings and apps Drawbacks to this approach Destroys ALL content, including any general settings I frequently need to test something more complex, like uploading images.
Continue reading

This is a follow up to my previous post on persisting PList data to disk as a form of transient storage for data. This second part will just show an easy way to pull that data from disk and get it into memory in an easily usable format. All of our Plists are stored as dictionaries. The keys for the dictionaries are stored as constants in a code file (Constants.
Continue reading

Recently, we had the need to save some simple transient data to disk. For data of any significant size, we would have looked at Core Data for our persistence. In this case, we decided to use the PList format to save data to disk and pull it back off. We went through several ideas to store this data. Some of the ideas we considered for persistence included: Core Data JSON saved in a flat file format PList saved directly to disk from a Cocoa object such as an NSArray or NSDictionary Because of our specific set of requirements and our hardware stack, we opted to go with the PList format.
Continue reading

Goodbye, Steve

I didn’t become an Apple user until a few years ago. I came to the platform out of curiosity. I bought myself a Macbook to start teaching myself how to code iOS apps. I quickly found myself amazed at the ingenuity and simplicity of the entire platform. It was the way everything tied together, and always seemed to work in the way you expected. The more I lived in the Apple world, the more impressed I became.
Continue reading

Quick Tip: I had an issue on a very large project in XCode. Starting 2 days ago, all of my syntax highlighting was completely broken. This is bad, but even worse, my code completion worked only partially. I was getting autocomplete for local variables only. When calling framework methods with a lot of parameters, I rely pretty heavily on code completion. I tried all of the usual fixes. This includes: - Doing a Project Clean (⌘⇧K) - Doing a Clean Build Folder(⌥⌘⇧K) - Restarting XCode
Continue reading

Author's picture

Mark Struzinski

iOS dev @ Lowe’s Home Improvement

North Carolina, USA