Re: Objective-C (Possibly OT)
Re: Objective-C (Possibly OT)
- Subject: Re: Objective-C (Possibly OT)
- From: Thomas Lachand-Robert <email@hidden>
- Date: Tue, 15 Jan 2002 10:15:00 +0100
Le lundi 14 janvier 2002, ` 09:14 , Steve Klingsporn a icrit :
This is kind of a weak defense for an utterly non-standard and
not widely used programming language.
Not a problem because it is fully compatible with C and even C++, and very
easy to learn.
Knowing nothing about a class, and asking one of its instances
if it responds to an arbitrarily-named method (with an
arbitrary signature as well?), and then calling it and expecting
magic to happen is kinda like the XML folks saying that data types
and their operations really are self-describing if you simply point to a
DTD.
Depends on how useful you think it is. IMHO it is more useful to the Cocoa
frameworks (or any "general" frmework) than for the programmer himself.
Using Obj-C, you can connect a delegate to window for instance, and then
the window will check if the delegate responds to windowWillResize and
windowDidResize (among MANY others); if it does, the delegate will be
informed about the resizing of the window. This is something that is very
difficult to do with C++ (you would need to use a lot of abstract classes
+ multiple inheritance + plenty of programming skill) for something that
is just OBVIOUS in Obj-C.
Maybe if we hold our breath, new and exciting types of apps
will suddenly 'evolve' and 'discover themselves?' ;o) Too bad it's
utterly non-standard. "Write all your code in our super-special
programming language that is based on a popular one but not
widely used, instead of C++, which sucks but is available
everywhere" does not seem like a smart battle cry for Apple,
eager to move beyond its 5% market share.
Looking at the two choices, Carbon (yuck!), and Cocoa (interesting
but relevant?) is depressing to me.
Looking at the 5% market share is depressing me. I don't really believe
that it is the lack of apps that is the main problem here.
Thomas Lachand-Robert
********************** email@hidden
<< Et le chemin est long du projet ` la chose. >> Molihre, Tartuffe.