discuss-gnustep
[Top][All Lists]
Advanced

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

Re: Object naming? and tree-based XML/HTML parsing


From: Markus Hitter
Subject: Re: Object naming? and tree-based XML/HTML parsing
Date: Thu, 9 Aug 2007 09:07:26 +0200


Am 06.08.2007 um 22:19 schrieb Daniel Ringwalt:

1. Objects that are part of the OpenStep specification start with NS.
2. Additions to OpenStep, like Apple's event-driven XML parsing, start
with GS.
Please don't flame me about the above, I don't know if GNUstep or
Apple created this first.

NeXT created the NS sheme, and both, Apple's Cocoa and GNUstep inherit from them. GNUstep added extensions with "GS", Apple added them with "CF" (CoreFoundation).

What I don't understand are why there are duplicates like NSArray/
GSArray. GSArray seems to be larger and under more scrutiny, but then
why is NSArray and not GSArray the one used by other objects? What
sort of additions are there in GSArray, and why is NSArray still
there?

1) NSArray makes use of GSArray or vice versa.

2) NSArray is portable to Cocoa, GSArray is not.

3) One of the biggest advantages of OpenStep/GNUstep/Cocoa is to keep things simple. If NSArray is sufficient to write efficient code, it's counterproductive to add more functionality. Readability and maintainability would suffer.

And are there any plans to implement Apple's tree-based XML parsing
(NSXMLNode, etc.)? How compatible is GSXMLParser to Apple's NSXMLParser?

I'm pretty sure GNUsteppers would accept an implementation which matches Cocoa's API.


Markus

- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/








reply via email to

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