• 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
Edit-in-Scope subtleties
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Edit-in-Scope subtleties


  • Subject: Edit-in-Scope subtleties
  • From: Fritz Anderson <email@hidden>
  • Date: Fri, 25 Sep 2009 13:15:51 -0500

Consider the following method:

======
- (double) rating
{
    if (self.attempts == 0)
        return 0.0;

    double      completionComponent = (
        ((double) self.completions / self.attempts) * 100.0
                                       - 30.0)
        / 20.0;
    completionComponent = pinPassingComponent(completionComponent);

    double      yardageComponent = (
        ((double) self.yards / self.attempts) - 3.0) / 4.0;
    yardageComponent = pinPassingComponent(yardageComponent);

    double      touchdownComponent =
        20.0 * self.touchdowns / self.completions;
    touchdownComponent = pinPassingComponent(touchdownComponent);

    double      pickComponent =
        2.375 - (25.0 * self.interceptions / self.attempts);
    pickComponent = pinPassingComponent(pickComponent);

    return 100.0 * (completionComponent +
                    yardageComponent +
                    touchdownComponent +
                    pickComponent) / 6.0;
}
======

What is the criterion Xcode 3.2 uses to enable editing variable names in-scope? If I click touchdownComponent or pickComponent, the underline markers fade in, and the drop-down menu is available. When I do the same for completionComponent or yardageComponent, I can't get the underline to appear.

Is there a subltety to the gesture that I'm not getting?

The symbols *Component are not used in any other scope. The file compiles. It has been saved. Indexing is on.

	— F

_______________________________________________
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


  • Follow-Ups:
    • Re: Edit-in-Scope subtleties
      • From: Andy Lee <email@hidden>
    • Re: Edit-in-Scope subtleties
      • From: Andy Lee <email@hidden>
  • Prev by Date: Re: Xcode 2.5: debugger does not not run
  • Next by Date: Link errors with iPhone 3.1/2.0
  • Previous by thread: Re: Advanced GDB question: menu item enabling / disabling debugging
  • Next by thread: Re: Edit-in-Scope subtleties
  • Index(es):
    • Date
    • Thread