Refactor: Extract Instance Variable not working? [solved]

I've been trying to get this to work and I always get this error:
"selected block should represent an expression or local declarator"

I remember using this before, so I'm not sure why I get this error lately. Is this broken? What I do is, given a line of code like this:

 
SomeVC *someVC = [[SomeVC alloc] init];


I then select either the pointer or the full line. In each case I get that error. I would expect this to work if I select that, and for refactoring to change all the other mentiones of that variable in the scope. Is this how it's supposed to work?

I'm using Appcode 3.1.2 with Yosemite 10.10.2.

Thanks.

2 comments
Comment actions Permalink

Please try selecting this part: "*someVC = [[SomeVC alloc] init];"

Or simply put the cursor anywhere in "*someVC =", without any selection at all.

0
Comment actions Permalink

Thank you, thank you, thank you.

That worked.

0

Please sign in to leave a comment.