Re: New Cocoa Programmer
Re: New Cocoa Programmer
- Subject: Re: New Cocoa Programmer
- From: Ondra Cada <email@hidden>
- Date: Mon, 12 Nov 2001 14:20:50 +0100
Marcel,
>
>>>>> Marcel Weiher (MW) wrote at Mon, 12 Nov 2001 11:46:48 +0100:
MW> Brad Cox and types?? The "class name" refers to the *factory object* of
MW> the class (or alternatively the shared part / shared structure).
Perhaps I am absolutely wrong, but... well, I don't have "An Evolutionary
Approach" at hand, but I _do_ have the NeXT (uh, Apple) docs, which seems to
say:
=== .../TasksAndConcepts/ObjectiveC/coreobjc.htm ===
...
A class name can appear in source code wherever a type specifier is
permitted in C...
...
...However, the class name stands for the class object __only as the
receiver in a message expression__. Elsewhere, you need to ask an instance or
the class to return the class id. Both respond to a class message:
id aClass = [anObject class];
id rectClass = [Rectangle class];
...
=== end ===
(underscores by me)
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
2K Development: email@hidden
http://www.2kdevelopment.cz
private email@hidden
http://www.ocs.cz/oc