views:

1116

answers:

6

I'm in the process of learning Objective-c but would like to run code snippets via some sort of emulator on Windows — preferably web based.

I want to understand Objective-C syntax and walk through common code examples, probably via some sort of console. I would probably leave any framework type learning for when I get onto my MacBook, at home.

I have done a quick Google with no success.

+3  A: 

Looked at GNUStep?

A: 

AFAIK you can use the GNU compiler to compile Objective-C, so that should be usable on Windows too. This should be sufficient to get you started with programming the language.

For Mac OS X however the language is only part of the equation, you will want to program against the libraries of Mac OS X, and for that you will really need a machine running it.

mghie
+6  A: 

It depends what you mean. Objective-C can be compiled by GCC, so you can happily create Objective-C test apps on Windows. If you are talking about the frameworks though, which contain most of the power when developing on OSX then it's a no unfortunately. You can get libraries compatible with SOME parts from gnustep.org (and run them on Linux/BSD), but it's still not the full OSX "stack".

You can get OS X running in VMWare, but it's illegal, so you best bet is to pickup a cheap Mac that can run Tiger/Leopard and use that.

Steven Robbins
Steve, thanks for the reply. I'll update my question be a bit more precise. I do have a Mac book which I have started learning Cocoa stuff, but would like to go into IE, at work, and learn some simple code snippets to help me when I get home.
Ferdeen
I acually have a Mac Mini "server" at home that I connect to from my work Windows box with Log Me In and use XCode on :-)
Steven Robbins
Cool. You shouldn't have told me that!
Ferdeen
Dude, leave your MacBook turned on when you go to work and then SSH into it (or use VNC) to access it from work. Or use logmein.com as already mentioned ;)
d11wtq
Sorry! Didn't look at the date of this thread! :-\
d11wtq
A: 

I'm not sure which libraries are present and which are not but you can run OS X Server in a VM (providing you have an OS X Server license of course). This would allow you to have a virtual Mac environment on your Windows system.

As has been mentioned above, there's no way to achieve what you want natively within Windows as the underlying system is obviously different.

Good luck.

Lazarus
+1  A: 

Another possibility is to use Cappuccino.

http://cappuccino.org

It is a cocoa-like framework for javascript, and looks very similar to objective-c. The language is called objective-j.

Stephan Eggermont
gosh! another language I might need to into. So many languages.
Ferdeen
A: 

There also is The Cocotron.

Sven