Extract a method name from selected text and put it in the pasteboard
Originator: | andylee63 | ||
Number: | rdar://7198039 | Date Originated: | 2009-09-04 |
Status: | Open | Resolved: | |
Product: | Developer Tools | Product Version: | Xcode 3.2 |
Classification: | Enhancement | Reproducible: | Always |
04-Sep-2009 03:27 AM Andrew Lee: Summary: Extract a method name from selected text and put it in the pasteboard Steps to Reproduce: 1. Open an Objective-C file in Xcode. 2. Enter either a method declaration like either: - (void)putBook:(NSString *)theBookName inSection:(NSString *)theSectionName ofLibrary:(NSString *)theLibraryName inCity:(NSString *)theCityName; or: [masterLibrarian putBook:@"The Dark Knight" inSection:@"Graphic Novels" ofLibrary:@"Mid-Manhattan Branch" inCity:@"New York City"]; 3. Select the four lines of the method declaration or method invocation. Expected Results: I'd like a variation of the Copy command that puts just the method name into my pasteboard, and not the whole declaration. In the example above, this would be putBook:inSection:ofLibrary:inCity:. This would allow me to paste the method name into, say, a HeaderDoc comment or other documentation. Actual Results: This is currently not possible. Regression: Notes: Add to Problem Details 04-Sep-2009 03:40 AM Andrew Lee: P.S. It would be handy if Xcode could provide this as a Service so I could do this method-name-copying in any application. 14-Sep-2009 08:39 PM: Engineering has requested the following information in order to further investigate this issue: Please create user script as depicted. 15-Sep-2009 07:55 PM Andrew Lee: Sorry, I don't understand the request -- what is meant by "user script," and how do I create one? 29-Sep-2009 05:11 PM: Engineering has provided the following information: Using the menu command: Scripts -> Edit User Scripts.... There is documentation on them.
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!