green_knight: (Dragonfly)
[personal profile] green_knight posting in [community profile] cupofcocoa
http://cocoasamurai.blogspot.com/2006/09/tip-pragma-mark-organizing-your-source.html explains it better than I can, but this is one of the little things that I've stumbled across in sample code.

Basically, by using

#pragma mark -
(which will give you a blank line)
and

#pragma mark whatever

it means that your editor will contain a list under @ implementation MyClass listing all your methods. It's a way to organise code and make it easier to jump to methods. I can see a strong case for getting into the habit straight from the start.
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

Cup Of Cocoa - OS X/iPhone/iPad Programming

June 2010

S M T W T F S
  1 2345
6789101112
13141516171819
20 212223242526
27282930   

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 22nd, 2025 12:05 am
Powered by Dreamwidth Studios