Re: Refactor>Rename problems
Re: Refactor>Rename problems
- Subject: Re: Refactor>Rename problems
- From: Doug Hill <email@hidden>
- Date: Wed, 14 Sep 2016 15:10:36 -0700
OK, I guess it's good to know I'm not the only one having issues with this feature.
Trying this a little more, here is some behavior I see:
• Select a property in a class interface, Refactor>Rename only renames the property in the class interface and implementation. Other files aren't modified.
• Select a property name used in another class file.
e.g.
MyClass *obj = [MyClass new];
obj.prop = 1;
Refactor>Rename on the 'obj' symbol will rename the symbol in the file where the selection was made, and in the file with the interface that defines that property, but not uses in the class implementation file.
I guess it's off to Radar.
Doug Hill
> On Sep 14, 2016, at 1:33 PM, Carl Hoefs <email@hidden> wrote:
>
> That's what I'm seeing too, more or less. When it works, it might only refactor some instances. And when it doesn't work, Xcode poofs in the middle of the refactor, leaving the project in an indeterminate state, and I have to manually edit the .pbxproj file in TextEdit to salvage it. This happens occasionally also when simply refactoring the project name. It also doesn't seem to consistently refactor method name changes in the XIB, leaving a lot of dead connections hanging around to be found at run time.
>
> Essentially, I've given up on it, and now I manually refactor always.
> -Carl
>
>
>> On Sep 14, 2016, at 1:15 PM, Doug Hill <email@hidden> wrote:
>>
>> I've noticed that Refactor>Rename doesn't work terribly well. I've had problems with this in the past but now that I upgraded to Xcode 8 I thought I'd try it again. But alas I continue to see issues where this functionality doesn't really work.
>>
>>
>> The latest issue I see is that I try to rename a property on an Objective-C class but refactor doesn't find all the locations where this property is used. My understanding is that this feature is supposed to rename all instances of a symbol in your project, including XIBs. Specifically, I see that Xcode doesn't find usage of this property outside of the class definition/implementation. For example, where another class uses it.
>>
>> I seem to recall this used to work in the past so I wanted to see if I'm missing something or should I just write up a bug.
>>
>> Doug Hill
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden