Skip to content

Instantly share code, notes, and snippets.

View rexeisen's full-sized avatar

Jon Rexeisen rexeisen

  • Senior Software Engineer with Trello
  • Minnesota, USA
View GitHub Profile

Keybase proof

I hereby claim:

  • I am rexeisen on github.
  • I am rexeisen (https://keybase.io/rexeisen) on keybase.
  • I have a public key ASBEmtB2LKIP1qXVUwLjI6iDna9cs-3Kgz0lWBRpv_oCZAo

To claim this, I am signing this object:

@rexeisen
rexeisen / gist:11628dd18de33f5223ba
Created May 28, 2014 15:06
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.

@interface Class : NSObject
extern const struct ClassConstants {
__unsafe_unretained NSString *foo;
__unsafe_unretained NSString *bar;
} ClassContstants;
@end
@implementation Class