Re: cocoa-dev digest, Vol 2 #2085 - 11 msgs
Re: cocoa-dev digest, Vol 2 #2085 - 11 msgs
- Subject: Re: cocoa-dev digest, Vol 2 #2085 - 11 msgs
- From: "John C. Randolph" <email@hidden>
- Date: Tue, 18 Mar 2003 14:32:27 -0800
On Tuesday, March 18, 2003, at 01:53 PM, Christopher Sean Morrison
wrote:
This is rather interesting. What provokes the +initialize call to be
made?
The Apple Obj-C runtime calls +initialize for every class it loads,
before sending any other messages to that class or any instances of
that class. Usually, classes you write will be derived from Object or
NSObject, and will simply inherit their +initialize method.
[snippage]
I assume the sourcecode
may also answer some details on why isa and +initialize are required by
the runtime. You've given me a lot to chew on. Thanks, again.
The isa pointer is required, because that's how an objective-C object
is bound to its class.
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.