Xcode undo of operations affecting multiple views doesn't work correct
| Originator: | michaelhochs | ||
| Number: | rdar://25337246 | Date Originated: | 24-Mar-2016 02:54 PM |
| Status: | Duplicate of 9676396 (Closed) | Resolved: | |
| Product: | Developer Tools | Product Version: | 7.3 |
| Classification: | UI/Usability | Reproducible: | Always |
Summary: When e.g. creating an outlet via drag and drop from interface builder into the code, making an undo afterwards only reverts the part of the action of the currently focused view. Steps to Reproduce: 0. Look at the screencast — or — 1. In Xcode open a ViewController and its corresponding storyboard side by side. 2. Right click and hold on a button of the view controller in the storyboard 3. Drag over to the interface or category of the view controller source code to create an outlet 4. Give the outlet a name and confirm the dialog 5. Undo Expected Results: - The created outlet in code should be gone - The reference to that outlet in the Storyboard should be gone Actual Results: - Depending on which view was in focus during the time you triggered undo, only one of the expected results is the case. Regression: Notes: - Using undo from the menu makes it more clear what happens, even though it is not ideal, however when using +Z to undo you don’t notice what is going on. Especially when the focus is on the source code, you see the source code changing and think everything worked. However at runtime of your code you will then experience a crash because the xib wasn’t able to connect the outlet that you thought you reverted. Open Radar Sample Video can be found here: https://github.com/michaelochs/radars/blob/master/25337246%20-%20XcodeUndo.mov
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!