Using refactor to rename a protocol is not always working

Originator:markus
Number:rdar://11190837 Date Originated:05-Apr-2012 03:41 PM
Status:Open Resolved:NO
Product:Developer Tools Product Version:
Classification:Other Bug Reproducible:Always
 
Summary:
When using Xcode refactoring facility to rename a protocol, occurrences of the protocol when they are contained within a @protocol(MNCAttributedStringAttributeProtocol) statement won't get renamed.

Steps to Reproduce:
-Pull https://github.com/echoz/MNcoder/commit/d943b98dbab77c7f59f22ecbf3b81d857cea75e0
-Open the workspace
-Select MNAttributedString.h
-Click on the protocol name and select Refactor > Rename…
-Rename it to MNCAttributedStringAttributeProtocol

Expected Results:
In MNAttributedString.m the protocol name will be correctly updated:
-(void)registerSubstituteClass:(Class)cls {
    if ([cls conformsToProtocol:@protocol(MNCAttributedStringAttributeProtocol)])
        [__substituteClasses addObject:cls];
}


Actual Results:
Nothing:
-(void)registerSubstituteClass:(Class)cls {
    if ([cls conformsToProtocol:@protocol(MNAttributedStringAttributeProtocol)])
        [__substituteClasses addObject:cls];
}

Regression:
/

Notes:
/

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!