• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Stray return makes method disappear from function popup
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: viewing pages in documentation
  • Next by Date: Can you remote debug from PowerPC to Intel?
  • Previous by thread: Re: viewing pages in documentation
  • Next by thread: Can you remote debug from PowerPC to Intel?
  • Index(es):
    • Date
    • Thread