Xcode 6.1: "Smart Quotes" checkboxes in NSTextView's inspector don't work
| Originator: | kusterer | ||
| Number: | rdar://19368672 | Date Originated: | 03-Jan-2015 04:52 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode 6.1 (6A1042b) |
| Classification: | Serious Bug | Reproducible: | Always |
Summary: I’m implementing a code editor using an NSTextView. As quote substitution, smart dashes etc. would be undesired there, I turn them off in IB. That doesn’t work. Steps to Reproduce: 1) Take a XIB file with an NSTextView in it 2) Bring up its Attributes Inspector 3) Scroll down where it says “Substitution” and un-tick the checkboxes for “Smart Quotes” and “Smart Dashes” 4) Build and run 5) Type put "This is some text" into card field 5 -- typical example script into the text view. Expected Results: 6) The field should contain that literal text. Actual Results: 6) The field contains put “This is some text” into card field 5 — typical example script (Note the curly quotes even though smart quotes are off, and the single long em-dash replacing the 2 short minus signs) This code will not compile. Notes: A workaround is to set the properties in code. Like an animal. There’s also a discussion about this at http://stackoverflow.com/questions/19801601/nstextview-with-smart-quotes-disabled-still-replaces-quotes
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!