1

When I copy and paste, (cmd-c, cmd-v) items from one view to another in Storyboard it also copies and pastes the items referencing outlets.

Obviously, it's achievable by going in and deleting the referencing outlets one by one. Which is what I want to avoid.

I'm looking for something akin to (dare I say it) Excel's 'paste special' command.

UPDATE

Nope, doesn't work in xcode 5.1 either, see image below, hopefully it succinctly shows you what is going on.

enter image description here

The image shows a view at the top, Add Expense View Controller, another view at the bottom, the name's beside the point, I've copied my cells from Add Expense View Controller, lo & behold it's got the old references in there. You can also see I'm using xcode 5.1...

So - how do you, or is it simply not possible, copy and paste without these references?

Interestingly there is a paste special option in the Edit menu, but in Xcode's menu definitions in the documentation there is no definition for "Paste Special"...

Community
  • 1
  • 1
LpLrich
  • 2,463
  • 2
  • 20
  • 31
  • Are you using Xcode 5.1? I can't reproduce this, though I remember it was like you said. – Desdenova Mar 20 '14 at 12:33
  • Oh, right, I'm on 5.0.2. The latest Xcode doesn't do this any more? If you're sure about that then you can go ahead and say "Update your xcode to 5.1 or above" as an answer and I'll accept it even though, strictly speaking, that's not really doing what I asked. – LpLrich Mar 20 '14 at 12:43
  • This is not mission-critical for me, obviously, I am now interested in this from an academic point of view having already moved past this in my code base. – LpLrich Mar 20 '14 at 16:30

1 Answers1

2

Seems like they fixed it on Xcode 5.1. Both copy/paste and option+drag doesn't copy the referencing outlets.

Desdenova
  • 5,326
  • 8
  • 37
  • 45
  • Now I just need to find more space on my ssd. Up to 5.75 gb now but still not enough to do the update... Geez. – LpLrich Mar 20 '14 at 12:55
  • 2
    Oh well, bye bye Starcraft. – LpLrich Mar 20 '14 at 12:56
  • Get a bigger SSD and please send me the old one. – matt Mar 20 '14 at 16:18
  • Ha, these new MacBooks don't let you swap out your SSDs! I have bootcamp on here, stupidly I thought that I'd donate half my space to my windows partition. – LpLrich Mar 20 '14 at 16:20
  • Sorry, had to take check mark away from this as updating to 5.1 didn't solve the problem. You'll see I've got a screen shot up above with 2 views, some copy/pasted items and even my xcode version number in there. – LpLrich Mar 20 '14 at 16:27
  • I want copy WITH reference outlet in Xcode 7.1. How can I do it? – huynguyen Nov 02 '15 at 01:48