views:

112

answers:

1
  1. Select a method

    Selection

  2. Edit > Refactor...

  3. Select "Move Up"

  4. I get the following error a lot.

Refactoring Error

Any ideas on how I can get Xcode to, well, do its job?

Solution Summary

Option 2 that Peter suggests below did the trick. I can't believe that

a) I didn't try this Smacks head

and

b)

Xcode couldn't find a sane way of saying "Don't select the whole method!"

+1  A: 

Two possibilities:

  1. Maybe that blank line at the start is screwing it up? Try starting the selection at the -/+.
  2. Try right-clicking the first segment of the selector and Refactoring that.
Peter Hosey
Option 2 did the trick. I can't believe I didn't try that. How embarrassing. I suppose it could be worse - imagine how shameful it would be if I developed software for a living. Oh. That's right, I do. Oops.
John Gallagher