Xcode silently alters (and invalidates) text view settings in xibs
| Originator: | jens.ayton | ||
| Number: | rdar://10810131 | Date Originated: | 2012-02-05 |
| Status: | Open | Resolved: | |
| Product: | Developer tools | Product Version: | 4.2.1 |
| Classification: | UI/Usability | Reproducible: | Always |
Summary: When opening a XIB file which contains a text view with automatic spelling correction disabled, the flag is turned on without notice. This also happens when opening project file containing such a XIB. If the deployment target is set to Mac OS X 10.5 or earlier, this then generates a warning since automatic spelling correction is not available prior to Mac OS X 10.6. Steps to Reproduce: * Create a new Cocoa Application project (without ARC). * Set the Deployment Target to 10.5. * Open MainMenu.xib. * In the File inspector, set the deployment version to 10.5. (Secondary bug: this defaults to the project’s SDK instead of its deployment target.) * Add a text view to the window provided in the xib. * Turn of the Automatic Spelling Correction check box under Linguistics in the Attributes inspector. * Save the xib and build. There should be no diagnostics. * Select main.m so that the xib file is no longer open in Xcode. * Close the project. * Reopen the project. Expected Results: * Nothing of interest. Actual Results: * One or two warnings appear. The one that always appears complains is “Automatic Spelling Correction on Mac OS X versions prior to 10.6 (This property is ignored)”. The other one, which comes and goes, is “Text Replacement on Mac OS X versions prior to 10.6 (This property is ignored)”. * Upon inspecting the xib in Xcode, the Automatic Spelling Correction flag is now set for the text view. The file is not altered, but upon saving the NSFlags field is modified. (Secondary bug 2: this can be detected with diff, but not FileMerge, because FileMerge by default uses a filter which discards this flag.) Regression: Unknown.
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!
Status is now Duplicate/9111607.