PDA

View Full Version : Python to X Code




DShap5
Mar 8, 2013, 10:42 AM
Hi,

I know how to program in Python. Would it be terribly difficult to learn X Code? Are they about the same? or extremely different?



macjram
Mar 8, 2013, 10:44 AM
Hi,

I know how to program in Python. Would it be terribly difficult to learn X Code? Are they about the same? or extremely different?

I don't think X Code is a language, do you mean C/C++?

DShap5
Mar 8, 2013, 10:47 AM
Yeah, I guess :p. I don't even know exactly what it's called. Whatever is used to program iOS and Mac OSX applications.

balamw
Mar 8, 2013, 10:47 AM
What's your goal?

You can run Python code on Macs and iOS devices, so what do you want to do you can't already do?

B

DShap5
Mar 8, 2013, 10:50 AM
I want to be able to use the program X Code. What language does X Code use?

balamw
Mar 8, 2013, 10:52 AM
XCode is an IDE (http://en.wikipedia.org/wiki/Integrated_development_environment). You can use it to develop code in many languages, including Python. http://vandadnp.wordpress.com/2012/07/05/building-and-running-python-scripts-with-xcode-4-x/

Native Mac and iOS programs are usually written in Objective-C (http://en.wikipedia.org/wiki/Objective-C).

B

DShap5
Mar 8, 2013, 10:52 AM
Wait a second, I just did what smart people do.... I googled it. (I wonder if I'm smart now... probably not.) Just to make sure I have the correct info, X Code is just a program that makes it easier to program for Apple devices, but it does support most programming languages, right?

EDIT: Just saw your previous post after I posted this. Thanks!

Peace
Mar 8, 2013, 10:55 AM
Isn't Python still a command line compiler ?

Xcode uses extensive Objective C so I'd start there. It too is a compiler. Only Xcode has modules you can use to make an app. Learning Xcode is something that takes as much from you as you put in.

Are egg drop bots still written using Python ?

DShap5
Mar 8, 2013, 10:57 AM
Xcode uses extensive Objective C so I'd start there.

Would it be better to start by learning Objective C? Or will Python suit my needs?

Peace
Mar 8, 2013, 11:03 AM
It really depends on what you are writing.

If you are looking to compile for IOS or Mac OS you will need some Objective-C and perhaps C/C++.

You really can't do a lot with Python since it doesn't do GUI I don't think.

balamw
Mar 8, 2013, 11:09 AM
You can actually build GUI programs using Cocoa with Python.

http://stackoverflow.com/questions/861188/what-gui-options-are-available-for-python-on-mac-os-x

B

Peace
Mar 8, 2013, 11:13 AM
You can actually build GUI programs using Cocoa with Python.

http://stackoverflow.com/questions/861188/what-gui-options-are-available-for-python-on-mac-os-x

B

Cool. I didn't know that. I've been away from Python for years.

DShap5
Mar 8, 2013, 11:15 AM
Ok, thanks for all your help guys!