For Cocoa apps specifically, you might look at
GNUstep or
Cocotron and see whether they provide sufficient functionality for you to recompile your Objective-C code for other platforms.
As for "converting" your source code to another platform like Java or Flash, you'll probably need to do that by hand. It would be very difficult to automate, since the frameworks and APIs offered are so different.