Search code examples
pythonobjective-ccocoaserver-side

Objective-c Server Side


A bit of background: I have been developing apps for the past 2 years for Mac and iOS. I really like Objective-c and Cocoa/Cocoa-Touch framework. I did java and c++ before I started programing for iOS and now when I look at these languages i literally get a headache (The syntax mainly but also lack of classes provided by Cocoa framework). I think I have become too used to Objective-c [] syntax and the rich Cocoa-Framework (Things like NSDictionary, NSPredicate, NSString....)

Now: I need to do some server side programming. I was wondering what's my best option. I certainly don't want to go with Java, but is there a language that is closely like Objective-C that I can use which has a framework like Cocoa with classes similar to NSString, NSDictionary and such...? or better yet, can I even use Objective-C itself in server side programming?

Edit: I took a look at python, and as far as syntax goes, i like it. But of course, that's just syntax, there's ALOT more to a language than just syntax...

Thanks.


Solution

  • What's stopping you from writing server-side applications in Objective-C? Xcode comes with templates for command-line applications (choose 'Foundation' rather than 'C' or 'Core Foundation').

    If the requirement of using OS X on the server is too much, you can opt for a Linux/BSD distribution and use GNUstep. Almost the entirety of Cocoa is reproduced (in delightful open-source form!) in the GNUstep project. It's usually as simple as recompiling on your target platform with zero changes required to the source code.