Boing Boom Chock

Renaming your appDelegate File

by on Jan.16, 2009, under Uncategorized

Do you need to change the filename of your appDelegate file? You obviously can’t just rename the file, because the project looks for it as an entry point to your code. XCode actually makes this really easy to do, although it’s not immediately obvious how to do it. Just go into your appDelegate’s .h file, right-click on the Class name (right next to @interface), and choose “Refactor”. From there, the process is pretty simple. Just make sure Rename is selected in the drop-down list on the left, and enter the new class name in the text box on the right. Click Preview, and you’ll get a report of what will be changed. Click Apply to apply the change. That’s it. Simple as that.

Be Sociable, Share!
360 comments for this entry:

Leave a Reply

You must be logged in to post a comment.

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...

Archives

All entries, chronologically...