Auto-insertion of closing square brackets/parenthesis dependent on second pref

Originator:help.you.i.can
Number:rdar://14668635 Date Originated:8/7/2013
Status:Open Resolved:
Product:iPhone SDK Product Version:7.0 b5
Classification:UI/Usability Reproducible:Always
 
Summary:
Xcode has the option to disable auto-insertion of the closing curly bracket "Automatically insert closing brackets ("}")" and an option named "Automatically balance brackets in Objective-C method calls". The latter suggests that closing square brackets will not be inserted, however it doesn't work unless a second option is also unchecked. Plus it is not obvious that this same setting also disabled insertion of the closing parenthesis.

Steps to Reproduce:
- Open Xcode, open an Objective-C .m file
- Open Xcode Preferences > Text Editing and uncheck "Automatically balance brackets in Objective-C method calls" and check "Enable type-over completions" (whatever this means)
- Write an arbitrary method in the .m file
- Start typing: "NSString *str = [[NSString alloc" OR "if (flag"

Expected Results:
- No auto-insertion happens

Actual Results:
- Two closing square brackets (1) or a closing parenthesis (2) are automatically inserted

Regression:
When unchecking the other option, "Enable type-over completions", of which I have no idea what it does, the closing brackets and parenthesis do NOT get inserted, as was desired. It's not obvious why this option is dependent on the other type-over option and it's also not obvious that it also applies to parentheses.

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!