Cocoa Development Part 2: Tools

Tools.pngLast time we talked about some great programming books, and how to start developing. Today we will dive into some of the great tools available to Cocoa Developers.

One of the greatest blessings that Apple has given us developers is documentation. And not just documentation, but in-depth, clear, and understandable documentation. There are also lots of sample codes and coding guides. And when you install the SDK you automatically get all of this free of charge. You can even access it all right from Xcode; just go to Help>Documentation. You will then be presented with the documentation window. Based on whether or not you have the iPhone SDK installed, you will see Mac OS X and iPhone sections. You can search through certain sets (like OS X 10.5, or iPhone 2.2) or search them all. If you have the iPhone SDK installed, though, you will want to search by sets so you don’t accidentally try to put Cocoa Touch in Cocoa. If you click on a set in the sidebar, you can view its main page, which can help you find what you need if you don’t know what its called. The documentation is going to be your best friend as a Cocoa developer. You are never expected to remember those long delegate methods like tableView:targetIndexPathForMoveFromRowAtIndexPath:toProposedIndexPath: or even short methods like initWithCoder:.

Picture 1.png

Another great tool that can be used for remembering methods or blocks of code is Code Collector Pro (which we have previously reviewed). Code Collector Pro allows you to create code snippets and then sort them by tags, description, language, etc. It is very useful if there are large chunks of code that you use very often. You could use something like TextExpander, but Code Collector Pro is built for coders. It even has syntax highlighting.

Picture 2.png

One of my personal favorite tools is Class-Dump. Class-Dump allows you to feed it a binary file, and it will give you all the header files associated with that binary. This is great for finding private header files in things like UIKit, or if you just want to see the header files of your favorite application. The basic syntax for it is class-dump -H /Applications/iTunes.app/Contents/MacOS/iTunes. Before you run it you may want to call mkdir ~/Dekstop/headers and then cd ~/Dekstop/headers. This is just to make sure you don’t end up with 100+ header files in your home folder.

The final tool (or tools) I will leave you with are websites. These are my favorite websites for finding tutorials and answers to my questions:

Comments

6 Responses to “Cocoa Development Part 2: Tools”

  1. Cocoa Development Part 2: Tools | MacApper | www.toolworld.ca on February 6th, 2009 8:39 pm

    [...] posted here: Cocoa Development Part 2: Tools | MacApper Share and [...]

  2. idrive on February 7th, 2011 7:06 pm

    Hi Guys, I just found a pretty nice site for unlock / jailbreak/ iphone 3g 3gs and iphone4 jailbreak.

    http://www.anysim.net
    http://www.bmw-eba.de.tl

  3. divine lartey on July 1st, 2012 1:38 am

    please can our next OSX name be Cheatah?

  4. Herbert Grunder on November 13th, 2013 6:57 am

    It’s best to take part in a contest for among the best blogs on the web. I will advocate this website!

  5. Sherilyn Eno on November 14th, 2013 4:32 am

    Good post. I be taught one thing more difficult on completely different blogs everyday. It’s going to at all times be stimulating to learn content material from different writers and observe somewhat one thing from their store. I?d want to make use of some with the content material on my weblog whether or not you don?t mind. Natually I?ll provide you with a hyperlink in your internet blog. Thanks for sharing.

  6. gatunki win on November 15th, 2013 10:36 pm

    This is this kind of a wonderful resource that you are also offering as well as you give this absent free of cost. I adore viewing web sites that understand the market value of supplying a top-notch resource free. This? s the outdated what explores transpires regular.

Feel free to leave a comment...
and oh, if you want a pic to show with your comment, go get a gravatar!