Cntrl-drag to create outlet connection adds the declaration for the outlet to the wrong class
| Originator: | hamburgersandtoast | ||
| Number: | rdar://22018195 | Date Originated: | 7/27/2015 |
| Status: | Open | Resolved: | |
| Product: | XCode | Product Version: | Version 7.0 beta 4 (7A165t) |
| Classification: | UI/Usability | Reproducible: | Always |
Summary: In a workspace with multiple projects in it, if any of the projects contain a class with the same name as a class in another project (ie. ViewController), cntrl-dragging to create an outlet connection to that class will create the declaration in the other project's class. Steps to Reproduce: 1. Create a new workspace. 2. Create a first new project - iOS/Application/Single View Application 3. Options for first project: Language:Swift, Devices:iPhone 4. Add first project to the workspace. 5. Create a second new project - iOS/Application/Single View Application 6. Options for second project: Language:Swift, Devices:iPhone 7. Add second project to the workspace. 8. Create a third new project - iOS/Application/Single View Application 9. Options for third project: Language:Swift, Devices:iPhone 10. Add third project to the workspace. 11. Open Main.storyboard in project 3 and add a UILabel to the ViewController’s View 12. Open corresponding ViewController class in Assistant Editor. 13. Control drag from label to ViewController class to create an outlet. Expected Results: I would expect the outlet declaration to be added to the class. Actual Results: Line blinks like outlet declaration is being added to the class, but it never appears in the class and instead and the declaration is added to a different project’s ViewController class Version: Xcode Version 7.0 beta 4 (7A165t) & OS X Version 10.10.4 (14E46)
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!