Xcode method navigation

Posted by Bill on Stack Overflow See other posts from Stack Overflow or by Bill
Published on 2011-03-19T00:07:57Z Indexed on 2011/03/19 0:10 UTC
Read the original article Hit count: 125

Filed under:

In Xcode 4, I can press Ctrl-6 to get a list of all the methods in the current file.

The problem is, if I have private methods declared at the top of my implementation file, say:

@interface Foo ()

-(void)tap:(id)sender;

@end

@implementation Foo

...

-(void)tap:(id)sender
{
  ...
}

then starting to type "tap" while the method list is visible will just take me to the declaration, since it comes first in the file, when what I really want is the implementation.

Is there any way to exclude these declarations from the method list or do I need to resort to separate Foo.h and Foo+Private.h headers?

Thanks!

© Stack Overflow or respective owner

Related posts about xcode