Sebastian Suchanowski Programmer's notes

1May/101

Xcode FIXME and TODO list

Before I start describing mentioned tags I would like to show useful #pragma directives. We need first to assure that option Sort list alphabetically is off like in the screen.


There are two ways of using #pragma directives:

1
2
#pragma mark -
#pragma mark label

First one function is to separate labels from each other but there mustn’t be a space or anything after the hyphen. Next screenshots shows us directives in action.

Fragment of code..

And its effect..

Now lets go back to the FIXME and TODO list because with them our life is little easier. If you want to search all files for TODOs and FIXMEs you can just use Edit->Find->Find in Project… or go there quicker by . In the other hand while working with one file there is convenient way to preview places that need our attention.
We can use one from:

1
2
3
4
// TODO:
// FIXME:
// ???:
// !!!:

Look at examples and final result.

TODO

FIXME

???

!!!

Result:

I don’t think there is any explanation needed =)

Share!

This post is also available in: Polish

Comments (1) Trackbacks (0)
  1. I must say it was hard to find your page in search results.

    You write interesting posts but you should rank your page higher
    in search engines. If you don’t know how to do it search on youtube:
    how to rank a website Marcel’s way


Leave a comment

(required)

No trackbacks yet.