I use a lot of NSString constants like:
static NSString * const REAColorPlaybackBackgroundKey = @"REAColorPlaybackBackgroundKey";
static NSString * const REAColorPlaybackForegroundKey = @"REAColorPlaybackForegroundKey";
There’s unnecessary duplicity and no easy way to rename them. Xcode’s Refactor command doesn’t work here and Edit All in Scope can’t handle it either. Is there a smarter way to define NSString constants?
Sure, try something like this:
Obviously, you can make
PREFIXandSUFFIXconstant instead of parameters if you’d prefer.