-1

I have dozens of functions across many .m files that appropriately show in the pulldown menu on the xcode bread crumbs bar. However, last night, I added a new function to my code, but it absolutely won't show up in the pulldown list. The function before it appears. The function after it appears. Pragma marks before and after it appear. I've restarted Xcode several times. After defining the function in the .h, Xcode autofills the function name in the .m. The code in the function works fine. It just won't appear in the breadcrumbs pulldown.

I'm getting around it right now by adding a pragma mark right before the function starts. But, does anyone have any suggestions on why it's not showing in the pulldown and what can be done about it?

Spr.h

-(void) wCheck:(NSMutableArray *)CO lat:(double)target_lat long:(double)target_long;

Spr.m

 #pragma mark wCheck <-- this works
 -(void) wCheck:(NSMutableArray *)CO lat:(double)target_lat long:(double)target_long
 {
      //the code in here works fine.
 }
Thunk
  • 4,099
  • 7
  • 28
  • 47
  • I am guessing breadcrumb bar you are referring to is the Navigation bar. Also, would that function happen to be the first one in the .m file? – Khaled Barazi Mar 03 '13 at 21:57
  • @Spectravideo328 - the function is pretty much right in the middle of the .m. Functions before and after it appear in the pulldown. – Thunk Mar 04 '13 at 01:28

2 Answers2

0

Try forcing re-indexing of your project. Open Organizer -> Projects, select your project, delete its derived data, restart Xcode, wait for it to complete indexing.

Kreiri
  • 7,840
  • 5
  • 30
  • 36
0

re-indexing didn't help. I'm just sticking with the workaround of adding a #pragma mark right before the function name.

Thunk
  • 4,099
  • 7
  • 28
  • 47