www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/03/06/23:50:58

Date: Tue, 6 Mar 2001 21:50:30 -0700
From: Bill Currie <bill AT taniwha DOT org>
To: djgpp AT delorie DOT com
Subject: Re: objective c
Message-ID: <20010306215030.A4217@taniwha.org>
Mail-Followup-To: djgpp AT delorie DOT com
References: <3AA57A2C DOT 9983C44F AT home DOT com> <200103070034 DOT TAA17497 AT envy DOT delorie DOT com>
Mime-Version: 1.0
X-Mailer: Mutt 1.0.1i
In-Reply-To: <200103070034.TAA17497@envy.delorie.com>; from dj@delorie.com on Tue, Mar 06, 2001 at 07:34:24PM -0500
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019