• 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
Refactor + moved XIB file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Refactor + moved XIB file


  • Subject: Refactor + moved XIB file
  • From: Quincey Morris <email@hidden>
  • Date: Thu, 10 Sep 2009 22:49:31 -0700

I'm a bit confused. I created a brand-new document-based project in Xcode 3.2, and then moved some files around, including:

1. I made a new folder within the project folder.
2. I moved English.lproj inside that folder.
3. I fixed up the Xcode file references by adjusting the 'Resources' group path to point to the new folder.


And I did a similar thing for the source files MyDocument.m/.h too.

The project builds fine, without errors.

The I tried to use Refactor... to change the name of class 'MyDocument' to something else. When I click "Preview" in the Refactor window, it comes up with an error saying that <project folder>/ English.lproj/MyDocument.xib doesn't exist, which is true enough, but there shouldn't still be any references to the file at that path in the project.

In the Refactor window behind the sheet with the error, all of the renamed files (MyDocument.xib/.m/.h) are listed twice. For the .m/.h, one of the two listed files has a checkmark, the other has no checkbox at all. For the first listed MyDocument.xib, there's a spinning progress indicator.

What's weird is that if I remove the project reference to MyDocument.xib, I still get the error on refactoring (even after cleaning the project). If I then look at the .pbxproj file in textedit, it correctly contains no reference to MyDocument.xib whatsoever.

If I move the English.lproj folder back to its original place in the project folder, I get the error message on the *second* MyDocument.xib entry in the Refactor window instead.

Can anyone shed any light on what's going on here? Where is the reference to the "wrong" path to MyDocument.xib being cached?


_______________________________________________ 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: Refactor + moved XIB file
      • From: Andy Lee <email@hidden>
  • Prev by Date: Re: missing frameworks in add existing frameworks sheet
  • Next by Date: Re: Refactor + moved XIB file
  • Previous by thread: missing frameworks in add existing frameworks sheet
  • Next by thread: Re: Refactor + moved XIB file
  • Index(es):
    • Date
    • Thread