Xcode 4.6 - Pragma marks not working?

Discussion in 'iOS Programming' started by Tander, Jul 16, 2013.

  1. Tander macrumors 6502a

    Tander

    Joined:
    Oct 21, 2011
    Location:
    Johannesburg, South Africa
    #1
    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,
     
  2. Tander thread starter macrumors 6502a

    Tander

    Joined:
    Oct 21, 2011
    Location:
    Johannesburg, South Africa
    #2
    It seems this is an old Xcode 4.6 bug. :(

    A workaround is to add empty braces at the top of the .m file.
     

Share This Page