Xcode: "Copy Selector"

Originator:mike.abdullah
Number:rdar://13555307 Date Originated:02-Apr-2013 11:40 AM
Status:Open Resolved:
Product:Developer Tools Product Version:4.6
Classification:Feature (New) Reproducible:Not Applicable
 
Summary:
Often for commit messages, or chat logs, I want to refer to a method by it's selector. Consider this method:

- (void)doSomething:(NSString *)thing withHelper:(MYHelper *)helper;

I'd love to be able to select some portion of that code, and choose "Copy Selector" or something like that from the menus in order to get this onto the pasteboard:

-doSomething:withHelper:

(the leading hyphen is optional; it's not technically part of the selector and I could happily live without it)

Comments

Refactor - Rename - ⌘ + C is only 2 clicks away (including right-click) and pre-selected for Copy. IMHO it's OK as it is.


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!