2

I have changed the xib name but the change done is not reflected in the xml file of the xib. I just changed the name by renaming the file in project navigator. am i missing something?

Edit: The project is under version control. and I have tried refactoring.

Edit 2: The issue was i was not changing the owner name referenced from xib and that was the problem in the xml of xib

Prajwal Udupa
  • 860
  • 5
  • 28

1 Answers1

5

Did you try opening the corresponding .m or .h file, selecting the class name, right clicking and choosing Refactor -> Rename... ?

That should update the .m, .h and .xib files, as well as the project file.

erwald
  • 162
  • 1
  • 9
  • I tried refactoring, but somehow it manages to miss the xml file – Prajwal Udupa Jan 23 '13 at 08:49
  • I suppose you could try opening the .xib file in a text editor, and do a find and replace? – erwald Jan 23 '13 at 08:53
  • I have to do that. But the question is why should i do that? It was supposed to happen all by itself right? I dont want a work around. – Prajwal Udupa Jan 23 '13 at 08:55
  • Did you try refactoring on a clean version of everything, having not changed anything? If so, I have no idea why it doesn't work. If not, you could go back to a version without any names changed (if you're using some revision control) and try refactoring again. – erwald Jan 23 '13 at 09:00
  • well thanks, But for some reason that did not help – Prajwal Udupa Jan 23 '13 at 09:11
  • Then I am at a loss. I suppose all that's left to do is find & replace or creating a new .xib file, as someone suggested above. – erwald Jan 23 '13 at 09:15