Tag Archives: cocoa

Development Links: Redux

This is an update to my previous post Below is a list of my subscribed developer feeds along with a link to each home page. At the end of the post you will also find an OPML file if you are so inclined Enjoy! First are the Aggregators: [RSS] iPhoneFlow [RSS] Planet Cocoa [RSS] The [...]

Open Source iPhone: Resources

Great Resource, tagged and organized: http://cocoaheads.byu.edu/resources/open-source Originally suggested in this Stackoverflow question.

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 [...]

…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 [...]

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 [...]