Mail Archives: djgpp/2001/03/06/23:50:58
On Tue, Mar 06, 2001 at 07:34:24PM -0500, DJ Delorie wrote:
>
> > what exactly is objective c
>
> It's the core language for NeXT workstations. Kinda like C, but with
> objects, but not quite C++. Rarely used.
While still not very common, GNUstep uses it (funny that), and QuakeForge is
working on porting QuakeEd from NeXTStep to GNUstep so that Linux (and when
the windows port of GNUstep is going) windows have a reasonable quake map
editor.
It's not all that hard to learn once you know C, especially if you're ok with
objects. Here's an example ripped straight out of the QuakeEd source:
VectorAdd (org, v, emins);
VectorAdd (org, v2, emaxs);
new = [[SetBrush alloc] initOwner: self mins:emins maxs:emaxs
texture: &td];
[new setEntityColor: color];
As can be seen, it's basicly C with some additional syntax for objects.
If you're interesting in seeing more:
cvs -d :pserver:anonymous AT cvs DOT quakeforge DOT net:/cvsroot/quake login
<enter for password>
cvs -d :pserver:anonymous AT cvs DOT quakeforge DOT net:/cvsroot/quake co quakeforge
and then look in quakeforge/tools/Forge. The .m files are the Objective-C
files. One word of warning: quakeforge is currently 12M of source code.
Bill
--
Leave others their otherness. -- Aratak
- Raw text -