• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: New Cocoa Programmer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: New Cocoa Programmer
      • From: Marcel Weiher <email@hidden>
References: 
 >Re: New Cocoa Programmer (From: Marcel Weiher <email@hidden>)

  • Prev by Date: Re: Bugs with Obj-C++ compiler
  • Next by Date: Re: New Cocoa Programmer
  • Previous by thread: Re: New Cocoa Programmer
  • Next by thread: Re: New Cocoa Programmer
  • Index(es):
    • Date
    • Thread