Skip to content

Instantly share code, notes, and snippets.

@rexeisen
Created May 28, 2014 15:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rexeisen/11628dd18de33f5223ba to your computer and use it in GitHub Desktop.
Save rexeisen/11628dd18de33f5223ba to your computer and use it in GitHub Desktop.
Xcode Refactor > App Code 3.0 Refactor

There are two instances where I found Xcode was better than AppCode for refactoring. Basically, I had to change the prefix on several files.

First, I simply created a view controller with an associated xib. I renamed the file from selecting the class name in the header, used ^T or ^⌘E and then associated xib was never renamed and the file's owner in the xib didn't work. This worked as expected in Xcode.

In a more complex fashion, I had some UICollectionView subclasses with an associated nib. Again, renaming the file didn't rename the xib. Here, there is no file's owner, but the root view of the xib is the custom collectionview subclass. AppCode didn't change the class of the root view but Xcode did.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment