Tag Archives: objc

Building a static library that works on the iPhone and the simulator

Apple’s iPhone simulator runs really smooth and fast. This is because they aren’t emulating the ARM code on your Mac, they’re actually building x86 binaries that will run in the simulator. Because of this, code written for the iPhone needs … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

How to change the color of UIBarButtonItem on iOS 5

My most popular blog post is how to change the color of a UIBarButtonItem. It’s something that lots of people want to do, but it involved some pretty weird hacks to get it working. Now that iOS 5 is out, … Continue reading

Posted in Uncategorized | Tagged , , , | 2 Comments

How to make your app open in full screen on Lion

One of Lions new features is full screen apps. Full screening an app is supposed to remove all distractions and make room for more of the app’s UI. Actually implementing this in your app is quite simple, but finding how … Continue reading

Posted in Uncategorized | Tagged , , , , | 2 Comments

Automatic Link Detection in an NSTextView

NSTextView is a really powerful text view class. It can do all kinds of stuff like automatic spelling correction, email, phone number, and address detection, and link detection. I was working on a chat application and I wanted to have … Continue reading

Posted in Uncategorized | Tagged , , , | 5 Comments

How to launch your Mac/iOS app with a custom URL

One interesting feature of iOS and Mac apps is the ability for them to be launched by a custom URL. What this means is that you can set up your app to respond to different links in different ways. Clicking … Continue reading

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

How to change the color of a UIBarButtonItem

EDIT: There is a new way to do this in iOS 5 that is much easier and nicer. If you want to support iOS 4, keep reading. A UIBarButtonItem is an item that goes on a UIToolbar or a UINavigationBar. … Continue reading

Posted in Uncategorized | Tagged , , , , | 5 Comments

Simple imgur iPhone Uploader

Recently I’ve been toying with the idea of adding image uploading to Thoughtback. One easy way to do that is to use another image host and just post a link in the thought. I decided to try out imgur because … Continue reading

Posted in Uncategorized | Tagged , , , , , | 2 Comments

How to create a custom cocoa framework

I was recently trying to rip out some code from the¬†Thoughtback app into it’s own framework so that I could eventually open source when we decide to make our API public. I’ve used frameworks plenty of times, but I’ve never … Continue reading

Posted in Uncategorized | Tagged , , , , | 1 Comment

Using blocks and Grand Central Dispatch for asynchronous web calls

Today at work, we were talking about building a REST framework and someone described how they made NSURLConnection behave synchronously. That seemed strange to me. Then, he told me that using Grand Central Dispatch made it easier to deal with … Continue reading

Posted in Uncategorized | Tagged , , , , , | 1 Comment

Thoughtback, get your thoughts back.

This past weekend I went to an event called Startup Weekend Lansing. Basically, you take a bunch of people with ideas and a bunch of people with the skills to build those ideas and put them all in a room … Continue reading

Posted in Uncategorized | Tagged , , , , | 1 Comment