Re: How to copy class interface and implementation without connections to .xib file
Re: How to copy class interface and implementation without connections to .xib file
- Subject: Re: How to copy class interface and implementation without connections to .xib file
- From: "Richard Altenburg (Brainchild)" <email@hidden>
- Date: Mon, 02 Jul 2012 08:10:46 +0200
Op 2 jul. 2012, om 00:57 heeft Andy Lee het volgende geschreven:
> If you Command-click the file icon in the window's title bar, you can see the full path of the file you are looking at. If the path goes to the old project, close it with File > Close "YourFileName.xib". The keyboard equivalent is Control-Command-W. You might even want to close *all* files that are open in that window by holding down that key until the window says "No Editor". Closing the project window and reopening might help -- I didn't think to try that.
I could not figure out the problem yesterday. I have seen it before, by the way, but as I was really just starting with some basic code back then I did not bother at all. I could just rewrite the few lines I had. That is not what I want to do now, there is too much code to type this time, so I copied it over from the old project.
When I clicked on the 'closed bullet' (the filled in circle left of an IBOutlet or IBAction in my .h and .m files) I got a popup with not one but two connections in it. One was to a UI element in my new projects' .xib file, but the other, when clicked, clearly brought my old project to the front, and as I removed the connections to that old project, what I really did was modifying the old .xib which I confirmed by compiling my old project and running it: the UI did not work anymore, the connections were gone.
I ended up renaming the IBOutlets and IBActions in my new project which helped me get rid of the old connections. From here I can go on to actually make this new little app running, I guess.
Sorry if this all sounds silly, but it has been an unexpected time pit for me (and you guys), and I hope to one day understand what happened. Thank you all for your help. I hope to have questions in the future that are more interesting than this weird one...
Best,
Richard.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden