Autocompletion useless for Block arguments

Originator:m.hanauska
Number:rdar://9760176 Date Originated:12-Jul-2011
Status:Closed Resolved:13-Jul-2011
Product:Developer Tools Product Version:4.1
Classification:UI/Usability Reproducible:Always
 
When an Obj-C method call, which takes a Block as an argument (e.g. enumerateObjectsUsingBlock), is autocompleted, the Block signature is a single "autocomplete item", e.g. "^(id obj, NSUInteger index, BOOL *stop)". When focused, a single keystroke removes the whole signature. There is neither a way to get exactly what is written there as text (which is the correct value to be used there), nor is there a way to only focus a single sub-element and only change that sub-element. So I have to re-type exactly what has already been written there before, since there is no way to turn the autocomplete suggestion into real text. It is pretty annoying that Xcode writes something for me, that would be the correct text to use, and then I have to re-type exactly the same thing because it goes away as soon as I make a keystroke.

Comments

Hey, that really works!

Is that documented somewhere or did you find it by just trying out what happens when pressing enter?

Will mark it as resolved. This is exactly why it is bad that Apple's Radar is a closed system. Apple has not even answered this issue so far and here I already have the solution :-)

By m.hanauska at July 13, 2011, 2:53 p.m. (reply...)

Press enter :)

Press enter while you are selecting the block token expand the block. :)

You should mark this as resolved in bugreport.apple.com!

By guillaume.campagna at July 12, 2011, 3:42 p.m. (reply...)

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!