Renaming enum type doesn't work with NS_ENUM macro?

I have code formatted as below:

typedef NS_ENUM(NSUInteger, Foo) {
    DefaultFoo = 0,
    FirstFoo,
    SecondFoo
};

When I try to use rename refactoring on "Foo", nothing happens.  I tried with both the rename shortcut (Shift+F6) and the Selecting the Refactor->Rename...  menu item.  If I change the declaration style to:

typedef enum {
    DefaultFoo = 0,
    FirstFoo,
    SecondFoo
} Foo;

Then rename works correctly on Foo.

In both cases, the individual enum constants can be renamed without issue for me.

Does anyone know if this is a bug, or if there is in fact a way to get this working?

Thanks.

4 comments
Comment actions Permalink

Hi Daniel,

Unfortunately, this is a bug.

0
Comment actions Permalink

Thanks again, Vyacheslav.  Do you have any information that can be shared regarding when development on AppCode 3.0 will formally start, along with the EAPs?  I'm impatient to see the latest bug fixes and updates  :)

0
Comment actions Permalink

EAP should be open in about a month.

0
Comment actions Permalink

Awesome!  Thanks again - you guys are great!

0

Please sign in to leave a comment.