Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

WhiteRabbit

macrumors newbie
Jan 11, 2005
26
0
I think all it does is make a special comment which Xcode adds to the quick jump list thing at the top of an xcode code view window. Immediately underneath the title bar there is a narrow bar with a dropdown list of every class and method that's in the current file. When you pragma mark a line it will also show up on this list so that you can quickly jump to that line from anywhere else in the file. It is useful for defining major sections of code.
 

Gelfin

macrumors 68020
Sep 18, 2001
2,165
5
Denver, CO
The #pragma directive is a standard way of adding nonstandard extensions to the C preprocessor as a way of controlling the operation of the compiler. What it allows you to do is specific to whatever compiler you're using.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.