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

Re: Refactor + moved XIB file


  • Subject: Re: Refactor + moved XIB file
  • From: Andrew Pontious <email@hidden>
  • Date: Sun, 13 Sep 2009 16:46:52 -0700

On Sep 11, 2009, at 9:43 AM, Quincey Morris wrote:

On Sep 11, 2009, at 08:13, Chris Espinosa wrote:

Nothing about Refactoring involves the Build folder.

Please file a bug and include the .xcodeproj wrapper. The way Xcode records references to localized files is a little odd, and it's possible that your project file has two different references to the same file.

Nevertheless, Andy was correct. Deleting the Build folder makes the error go away.

That's because this is an issue with the Xcode index, which is located in your build folder but is not affected by a clean build. Currently, moving things the way you're doing doesn't tell the index that the nib has moved. If you had reindexed (Project -> Edit Project Settings -> General tab, Reindex button at the bottom) you would've gotten the same result.


If refactoring has problems like this, reindexing should be your first to let you continue with your work.

Appreciate the bug.

-- Andrew

Submitted to bugreporter as #7216211.

FWIW, here's the minimal steps to reproduce:

1. Create a new Xcode project from the Cocoa document application template. Call this project (say) "Basic2".
2. Create a new folder (say) "Basic2 Files" within the Basic2 project folder.
3. Drag the the English.lproj folder from the Basic2 project folder into the "Basic2 Files" subfolder.
4. Move the Basic2-info.plist reference from the Resources group to the Other Sources group.
(Step 4 is needed to prevent the info.plist reference from getting stranded in step 5, and having to be fixed up afterwards.)
5. In the main Xcode project window, Get Info on the Resources group and choose the "Basic2 Files" subfolder as the group's path. It should now be possible to build the application without errors.
6. Open MyDocument.h, select the class name "MyDocument" and choose "Refactor..." from the context menu.
7. Type a new name for the class, (say) "Basic2Document", and click "Preview".


_______________________________________________
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

_______________________________________________ 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: Quincey Morris <email@hidden>
References: 
 >Refactor + moved XIB file (From: Quincey Morris <email@hidden>)
 >Re: Refactor + moved XIB file (From: Andy Lee <email@hidden>)
 >Re: Refactor + moved XIB file (From: Quincey Morris <email@hidden>)

  • Prev by Date: Code sense not working on 3.2
  • Next by Date: Re: Code sense not working on 3.2
  • Previous by thread: Re: Refactor + moved XIB file
  • Next by thread: Re: Refactor + moved XIB file
  • Index(es):
    • Date
    • Thread