Objective-C: FIXME, TODO and ???

A quick X-Code tip for those Objective-C heads up there. 

There are four different comment tags we can use when coding in XCode, that will allow us to to navigate the source code with some handy pointers. The tags are FIXME, TODO and ???.  So far you may only know of #pragma mark which allows you to section off pieces of your code within the same class file. Adding a TODO: comment, will allow you to flag certain code to fix up for later:


// TODO: Add a login feature here

FIXME comment is similar to TODO, but flags as something that you will leave as code, but needs to be fixed at a later stage. This is quite useful when working in teams, with other developers. Looking at the less frequent tags, ??? is a tag you would put if you rae unsure of how something works, and need to come back to it later, and !!! is something I would use to signify an important step or action.

Screen_shot_2009-12-05_at_3
Advertisements
This entry was posted in General and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s