Tag Archives: development

Quick Code – AppleScript from Cocoa

This is just something I picked up over the weekend to interface with Terminal.app via AppleScript: NSString *s = [NSString stringWithFormat:@"tell application \"Terminal\" to do script \"cd %@\"", folderPath]; NSAppleScript *as = [[NSAppleScript alloc] initWithSource: s]; [as executeAndReturnError:nil]; The intent is pretty easy to pick up (Also, please feel free to handle the error). The [...]

Understanding the Objective-C Runtime

The runtime has been a bit of a mystery to me. To be sure, I have yet to explore some of the more dynamic aspects of Objective-C/Cocoa in my applications. In fact, as many know, you can move along quite happily though your Cocoa/iPhone programming without directly daling with it. Others might not realize what’s [...]

Open Source iPhone – Glossy Buttons

The buttons in the iPhone SDK suck. There, I said it. Almost everything on the iPhone round, glossy and “3Dish”. Except the standard RoundRect buttons included in UIKit. Of course we can go off and use one of many drawing apps to crank out some nice glossy buttons, but there a few problems with this [...]

…And The Dot Syntax Battle Rages On

I find the manner in which programmers vehemently defend and deride coding style preferences absolutely fascinating. I personally feel that dot syntax serves a worthwhile purpose. In fact, I have been refactoring old code to conform to this convention. In the end, I feel these types of debates speak to the health and growth of [...]

Open Source iPhone – JSON Data

I’ve used/repurposed several open source projects for use in my code. If you’re not trying to use someone else’s code as much as possible, you’re not doing OOP. I won’t call this a series, but I would like to showcase some of the great code that is out there waiting to be used. All you [...]

Voices That Matter

A great opportunity for you to hone your iPhone Dev skills is coming up this fall. Voices That Matter: iPhone Developers Conference is a two day event that will be held in Boston on October 17-18. It will feature talks from some of the most talented and influential iPhone developers, authors, and experts. Speakers include: Bill [...]

Help out your NSDates

If you are like me, you really appreciate those nice, neat classes that make your most tedious work a little more bearable. Billy Gray over at zetetic has done just that with his NSDate+Helper category. if allows you to completely forget about NSDateFormatter and easily format dates in just about any format you need. it [...]

Private Properties

Objective-C 2.0 properties are pretty useful. They not only save you time, but also help “automate” memory management on the iPhone. They save you from screwing up your accessors. Another benefit, is the orthogonal relationship with dot notation. Dot notation short hand makes it extremely quick to change the state of an ivar with minimal [...]

Getting Bored Vs. Getting Done

When you begin a new project, you always begin with an immense amount of passion. You work diligently, economically, and with sharp focus. Such ambition, however, can quickly subside after a few snags or if monotony begins to set in. Unlike those that work in a development shop with several employees, we may have no [...]

New Dev Machine In The Mail

I sat down at the local Best Buy (unfortunately no local Apple Stores until I move back to Philly) and compared both the 15″ and 17″ MacBook Pros . I currently work on a 13″ MacBook, so the 15″ would definitely be a step up. Extra screen space is not just welcome, it is needed. [...]