On Mar 23, 2012, at 12:29 PM, Christiaan Hofman wrote: On Mar 23, 2012, at 16:47, Alex Zavatone wrote: When the XIB is selected, and you click on your window, you'll see Placeholders, File's Owner, First Responder, Objects, App Delegate, Window...
I had duplicated a project where I had items set up properly and changed the name of my AppDelegate .h and .m files and the name of the @Interface in each to be more appropriate to the project.
Of course, when I ran this iOS app in the simulator, it failed right away. Teh Googles told me the relationship I needed to understand that that my App Delegate in the xib file also had to be renamed.
That was what I was trying to do. Change the name of the App Delegate from the old one to the new one in the interface editor for xib files.
It doesn't let you. At least not as far as I can tell. I ended opening up the xib in an XML editor and did a search and replace.
Have you even read the reply from Fritz? You are still talking about the name of the delegate, which makes no sense. Fritz explained exactly what steps you have to take to change the name of the *class* of the delegate object. You have not indicated that you understood that, tried that, or where it fails for you. Therefore, the only answer to you can be that you simply didn't try hard enough.
No. I hadn't read it. I was on the phone.
As you indicated. Maybe I didn't try hard enough.
I did indicate that in Interface Builder that you are prevented from editing the app delegate's name in the XIB file if you have manually changed it elsewhere. I did indicate the layout of the relevant terms in the Interface builder file.
As you know, emails to this list are delayed, so your yelling at me for not trying hard enough could be replied to in kind, but I won't do that.
... reading Fritz's email ...
This is great and works as of Xcode 4.2, but just how many different methods will we have to rename files, projects, implementations and so on?
While we are able to rename projects, files, classes and methods, there appear to be (at least) three immediate methods to be able to do this, while only one of the three particular methods results in not breaking a project, and the method is contingent upon what you are renaming/refactoring.
Thanks Fritz. But really, this GUI has similar functionality spread out over too many disparate areas for tasks like this.
|