• 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
Re: "Refactor..." menu item is disabled (Fairly exhaustive list of when this happens)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "Refactor..." menu item is disabled (Fairly exhaustive list of when this happens)


  • Subject: Re: "Refactor..." menu item is disabled (Fairly exhaustive list of when this happens)
  • From: Craig Reynolds <email@hidden>
  • Date: Wed, 27 May 2009 15:08:16 -0700

On 26 May 2009 08:37:54 Andrew Pontious wrote:
On May 25, 2009, at 3:34 PM, Alexander von Below wrote:
Searching the mailing list, I found this thread on why the "Refactor..." menu in Xcode might be disabled:
http://lists.apple.com/archives/xcode-users/2008/Aug/msg00231.html
I have taken care to check all four reasons presented, but "Refactor" is still disabled for my project.


When exactly is this supposed to be enabled (i.e. what should I select)?

Are there more reasons why Refactor is disabled?

You should be able to select just about any C or Obj-C declaration in your source code, and have refactoring be enabled.

It's certainly possible that there's a bug that your particular project has exposed. If possible, please file a bug and attach the entire project that causes the problem, with specific steps as to
what you did: Open file A.m, went to line 123, selected first usage
of Foo on that line, etc. Even if it doesn't work anywhere in your
project, it's good to know which specific steps you tried.


If you don't want to send us your entire project, you can cut your project down to the least set of files that cause the issue, and just
send us that.


Looking back at the "fairly exhaustive list" in August 2008 I see that Refactor only works for "non ++" (neither C++ nor Obj-C++) source code.  That would explain why it is always disabled for me.  However this had been rather mysterious to me in the past because when I clicked on [Help] and typed in "refactor" all it could tell me was the location of the disabled menu item.  Today I tried Googling instead and found this doc:
http://developer.apple.com/DOCUMENTATION/DeveloperTools/Conceptual/XcodeRefactoring/10-Introduction/Introduction.html#//apple_ref/doc/uid/TP40006899-CH1-SW1

_______________________________________________
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: Link error
  • Next by Date: Recording Audio
  • Previous by thread: Link error
  • Next by thread: Recording Audio
  • Index(es):
    • Date
    • Thread