jackyglony / objectiveclipse

Automatically exported from code.google.com/p/objectiveclipse
0 stars 0 forks source link

Quick outline view does not work for private methods #36

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Playing around with version 0.2.0 I recognized that the quick outline view
has a problem to jump to the position in the editor for private methods.
In the outline view I can see private methods twice in my .m file which is
correct because of the private interface declaration at the top. If I
choose a private method in the quick outline view the editor does not
scroll to the code position, but to the top (where the private interface
declaration is placed). 
For all other methods it works just fine.

Original issue reported on code.google.com by gianasista@googlemail.com on 13 Jul 2009 at 6:58

GoogleCodeExporter commented 9 years ago
Thanks for the report!

I think it finds the first in the file. I'm not sure why it would be 
different for different types of identifier. 

By private, do you mean in a nameless category?

Original comment by alex.ble...@gmail.com on 13 Jul 2009 at 9:43

GoogleCodeExporter commented 9 years ago
Here is a code snippet of my private method declaration im my .m file

@interface LotteryEntry(private)
- (int)randomBetweenOneAndHundred;
@end

@implementation LotteryEntry
...
- (int)randomBetweenOneAndHundred
{
  return 0;
}
...
@end

Original comment by gianasista@googlemail.com on 14 Jul 2009 at 9:21

GoogleCodeExporter commented 9 years ago

Original comment by alex.ble...@gmail.com on 16 Jul 2009 at 7:23

GoogleCodeExporter commented 9 years ago
Right, if (on the outline view) I click on the private method, it takes me to 
the top of the file rather than the 
site of the declaration. If I click on the name of the class, it takes me to 
the right place, however.

Original comment by alex.ble...@gmail.com on 17 Jul 2009 at 8:50

GoogleCodeExporter commented 9 years ago
Ryan, do you know why, when parsing an interface method, the location seems to 
get dropped? Clicking on 
it in the outline takes you to the top of the file and doesn't select the text? 
I think this is the general 
problem when it can't find an IASTName in the source.

Similarly, this seems to generate problems:

-(void)foo
{
}
-(void)foo:(int)a
{
}

-(void)foo:(int)a with:(int)b
{
}
}

They show up in the outline, but if you click on them, they'll take you to the 
top of the page.

Original comment by alex.ble...@gmail.com on 19 Jul 2009 at 9:49

GoogleCodeExporter commented 9 years ago
Not offhand, although it may have something to do with the way I override 
toString()
method declarators ie. "foo:with:" doesnt appear in the docunment. 

I'll investigate.

Original comment by rrusaw@gmail.com on 19 Jul 2009 at 3:10