discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Obj-C cross platform compilation


From: Willem Rein Oudshoorn
Subject: Re: Obj-C cross platform compilation
Date: 11 Apr 2003 06:46:04 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

"Salter, Adam Q" <adam.salter@eds.com> writes:

> I am investigating writing a cross platform application (game)... I
> really like the Obj-C syntax and object model. My question is this:
> what do I need to do this?
> 
> - can I use GNUStep?

Yes, depending on what you use and what you consider cross platform.

> - do I really need to subclass NSObject (makes life a lot simpler I
> imagine with custom allocation/deallocation) for my own objects?

The short answer is YES, the long answer, probably not in all cases,
but you should really be knowing what you are doing. 
But I would recommend subclassing NSObject when you use GNUstep.
>
> - would the binary run slower than straight C++?
>
Well [object method] is slower than a C-function: function (object)
But not dramatically so.

> - does it require an extra library/run-time environment? (on
> Linux/Windows where it is not installed by default)

Yes,  you will need the ObjectiveC runtime and if you use GNUstep
of course the GNUstep libraries.
Depending on what you use from GNUstep you need to run additional
daemons/services/background processes.

Wim Oudshoorn.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]