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

PriapusZA

macrumors 6502a
Original poster
Oct 21, 2011
677
1
England
Hi Guys,

So, while writing some code this morning - I have noticed the
Code:
#pragma mark - myPragmaMark

Doesn't show up in the jump bar at the top of the file.

However if I do this:

Code:
-(void)someMethodName
{
#pragma mark - myPragmaMark 

//Some code for the method
}

This then shows up in the jump bar - I'm sure it's not meant to be like this through?

Any thoughts?

Thanks Gents,
 
It seems this is an old Xcode 4.6 bug. :(

A workaround is to add empty braces at the top of the .m file.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.