views:

48

answers:

1

There are two kinds of programmers in the world: those who like their source code to have all identifiers, methods, etc. sorted and those who think the first kind of programmer are crazy.

I am one of those who likes my code to be very organized (for those times I print the code on paper and need to find things).

Is there a tool which will rearrange Objective-C code, preferably with a user-defined configuration? Will uncrustify do this?

The program needs to remain legal Objective-C after sorting (see comments).

BTW, I am running on OS X.

Thanks.

A: 

I do everything in emacs (which does merge with XCode quite well BTW) so, I would end up writing an emacs function to do this.... I don't imagine it would be that hard. I would guess that a perl/ruby/python/shellscript-of-choice script would probably also do fine, but I don't happen to have one.

Brian Postow