   I should have made a backup.
  I have been working on this project for the iPhone for quite a while now, and since iPhone stuff as far as I know can only be programmed on a Mac, I have been learning how to use a Mac as my workstation. The Objective-C language also took me awhile to get. I have gotten the hang of it for the most part, and it actually is quite nice.It turns out that after 3 weeks of near continuous programming, I found out I should have made my project an OpenGL ES project once I wanted to implement graphics (I really should have done this first). So I made a copy of my project, made a new project set up the way I wanted, and then copied in my code from the other project.Well I didn't need the copy folder anymore so I put it in the trash. Eventually I emptied the trash and my project completely fell apart. Unfortunately, the files I thought I copied, were really just references to the files I deleted.So I tried to use a file recovery program, it didn't work.Now that I have passed the denial and anger phases, I am starting it over better then ever, and all the wiser about how the Mac does things.   
  I once had a friend who tried to give me a program he'd found somewhere on a CD. The only thing on the CD was a desktop shortcut...   ;  Wow.This is one of the very good reasons for using source control even for personal projects.  I learned this lesson in a different (but just as catastrophic) way a few years back.   ;next time;Quote:Original post by kryatnext timeGood idea, I just downloaded it.;  As much as I love git, the OP should know that git typically keeps all its versioning information in a hidden directory inside the source directory of your project.  Meaning that if you made the same mistake again, you'd probably still lose everything.Using an off-site git repository is probably your best bet.   ;Quote:Original post by Platinum314Now that I have passed the denial and anger phases, I am starting it over better then ever, and all the wiser about how the Mac does things.I hear Time Machine + an external drive is good for nice and easy backups on Macs.   ;  Xcode typically asks you if you want to copy the added files, or just keep references. Did you not see that dialog, or did you ignore it?   ;  Yeah, off site version control is always a nice thing to have.I delayed starting a project (partly) because I didn't have an offsite SVN setup yet. I've since set it up and, as normal, been commiting changes since day one.(also, because I'm lazy :D)   ;Quote:Original post by jpetrieXcode typically asks you if you want to copy the added files, or just keep references. Did you not see that dialog, or did you ignore it?I don't remember seeing a dialog box asking me that. Perhaps it's the way I did it, I selected the files and dragged into the XCode project. Or maybe it did show up and I thought it was something else, I was exhausted at the time. In hindsight it's obvious to me that it just made the references to the files and added them to the project.   