Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > coding on both windows & macs

coding on both windows & macs
Thread Tools
zanyterp
Mac Enthusiast
Join Date: Apr 2003
Location: manticore or people's republic of haven
Status: Offline
Reply With Quote
Jun 27, 2004, 03:54 AM
 
i wasn't sure what to search for, so i apologize if this has been discussed before. . .what is the best way to move code between what i will use at school (visual studio.*.*) and home (xcode)? i know that the gui cannot be transported, but is it possible to work on the c/c++/c#(?) code in xcode and import it, the source, into the projects at school? or is that not really possible? or does it depend on what the assignments are? thanks!!

nick

ps java will not be a problem to move between the 2 platforms at all right? unless i want to spec my gui, right?
some people are like slinkys: they don't do much, but are fun to push down stairs.
     
Richard Edgar
Dedicated MacNNer
Join Date: Sep 2002
Status: Offline
Reply With Quote
Jun 27, 2004, 11:33 AM
 
If the source files really are ISO C/C++, they should be fully portable. However, I doubt that anything else will be.
     
larkost
Mac Elite
Join Date: Oct 1999
Location: San Jose, Ca
Status: Offline
Reply With Quote
Jun 27, 2004, 11:56 AM
 
For C and C++, most non-gui code will move over just fine, the packaging arround it might be problematic, but the .c (and others) files will b just fine (unless you run up against some of VisualStudio's non-standard-complient-parts... *sigh*).

There is a C# compiler for MacOS X, free from Microsoft, and another one from the Mono project, but neither has bindings for XCode (yet).

There are a number of projects out there that provide C and C++ bindings for cross-platform GUI's, most notably QT (from TrollTech, not QuickTime). So it is possible to do this sort of work, but if you are using VisualStudio at school, chance are that you are in a MS-centric course, and things will quickly get difficult to move to any other platform (teaching GUI programming on MacOS X would be similarly platform centric).

The best courses tech programming on Unix boxes (usually PC's with X-11 to a sun box), and require that the projects be compilable on any standard compliant compiler (usually tested against GCC).

As to java, you should be able to move projects between platforms will little to no problems, even ones with not-to-complicated GUIs.
     
zanyterp  (op)
Mac Enthusiast
Join Date: Apr 2003
Location: manticore or people's republic of haven
Status: Offline
Reply With Quote
Mar 30, 2005, 12:08 AM
 
Originally posted by larkost:

There is a C# compiler for MacOS X, free from Microsoft, and another one from the Mono project, but neither has bindings for XCode (yet).
sorry, i know this is an old post . . . but it relates directly to what i was wondering about now. what does that mean about no bindings? does it mean that i can't use xcode to write code with for c# in xcode?

thanks!
some people are like slinkys: they don't do much, but are fun to push down stairs.
     
Brass
Professional Poster
Join Date: Nov 2000
Location: Tasmania, Australia
Status: Offline
Reply With Quote
Mar 30, 2005, 09:42 PM
 
Originally posted by zanyterp:
sorry, i know this is an old post . . . but it relates directly to what i was wondering about now. what does that mean about no bindings? does it mean that i can't use xcode to write code with for c# in xcode?

thanks!
You can use XCode to write and edit ANY text file. This includes programs in ANY programming language that can be written in plain text.

XCode offers many features apart from editing code, however. But such features depend on it knowing the language in which you're coding. Currently XCode only knows about C, Java, Objective-C and C++ (is that all, I think?). So for anything else, it's just a nice editor. But for these languages it can build the entire program for you, do syntax colouring/formating, indexing for finding interface parts, and much more.
     
zanyterp  (op)
Mac Enthusiast
Join Date: Apr 2003
Location: manticore or people's republic of haven
Status: Offline
Reply With Quote
Mar 30, 2005, 10:29 PM
 
Originally posted by Brass:
You can use XCode to write and edit ANY text file. This includes programs in ANY programming language that can be written in plain text.

XCode offers many features apart from editing code, however. But such features depend on it knowing the language in which you're coding. Currently XCode only knows about C, Java, Objective-C and C++ (is that all, I think?). So for anything else, it's just a nice editor. But for these languages it can build the entire program for you, do syntax colouring/formating, indexing for finding interface parts, and much more.
thanks.
some people are like slinkys: they don't do much, but are fun to push down stairs.
     
Chuckit
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Mar 31, 2005, 01:40 AM
 
Originally posted by Brass:
You can use XCode to write and edit ANY text file. This includes programs in ANY programming language that can be written in plain text.

XCode offers many features apart from editing code, however. But such features depend on it knowing the language in which you're coding. Currently XCode only knows about C, Java, Objective-C and C++ (is that all, I think?). So for anything else, it's just a nice editor. But for these languages it can build the entire program for you, do syntax colouring/formating, indexing for finding interface parts, and much more.
It has limited support for other languages. I use RubyCocoa with Xcode\, and it doesn't have completion or auto-formatting (i.e. select a block of text, hit a key and it'll indent it semantically), but it has a class/method index and syntax coloring.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 03:14 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,