Stray return makes method disappear from function popup
Stray return makes method disappear from function popup
- Subject: Stray return makes method disappear from function popup
- From: Bill Monk <email@hidden>
- Date: Wed, 15 Mar 2006 13:46:48 -0600
Not sure if this has been discussed before (a search of the archives
didn't turn up anything, but then I'm not sure what to call this)
Was looking in the function popup for a method I knew was there - but
it was wasn't in the popup.
It turned out there was a stray return in the file, like this:
- (void)setFooTo:
(int)bar { // <- stray return at start of line
foo = bar;
}
This compiles fine. But the extra return makes the method disappear
from the function popup. Maybe it's unreasonable to expect it to
parse this? On the other hand, the compiler makes sense of it....
(BTW it wouldn't bother me if the compiler called this an error - it
isn't something I particularly want to do. No doubt the return was
entered by accident at some point. It was startling to look in the
popup and find that a rather important and frequently-used method had
gone missing - particularly since the app had just launched and was
making heavy use of it. :)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden