Game Development Community

Mac Xcode and CS & DSO files

by James Daniel · in Torque Game Builder · 04/02/2007 (2:33 pm) · 4 replies

Is there a way to do the following with the XCode IDE
1) delete the *.dso files of a project so to force a complete recompile?
2) have the XCode IDE rec ompile the cs files into dso files?

I'm new to both the Mac and to TGB so I'm having some fun figuring out how to do things I can do on a WinTel system.

Thanks

#1
04/02/2007 (2:41 pm)
I would recommend writing a shell script to delete the files. It seems that there is one, but I can't recall. I know there is a batch file under windows, but I can't remember if I had to create a script or if it was there.

TGB compiles the files CD files to DSO's when you exec them.
#2
04/02/2007 (10:17 pm)
If you're using OS X 10.4; creating Automator workflows is a great way to deal with this, and many other, issues.
#3
04/03/2007 (8:03 am)
Thanks, I've never used the Automator so I'll give it a look. BTY: I've only been using a Mac since I got my MacBook Pro last November :D
#4
04/03/2007 (12:07 pm)
Here's a quick Automator tutorial; that results in a folder action that deletes .dso files::

Run Automator
Select Finder in the Library pane
Drag "Get Folder Contents" into the workflow pane
Check "Repeat for each subfolder found"
Drag "Filter Finder items" into the workflow pane
Whose name ends with ".dso"
Drag "Move to Trash" into the workflow pane
Save the Automator workflow with some kind of catchy name like "Delete DSO"

Then, any time you want to delete all the .dso files in a directory (and all subfolders); right click on the primary folder, go down the list of options to Automator and then select "Delete DSO" (or whatever you called it).

This, and much more can be accomplished with Apple's amazing Automator program!