Re: Hard Objc-Runtime question: objc_getClassList lies to me...
Re: Hard Objc-Runtime question: objc_getClassList lies to me...
- Subject: Re: Hard Objc-Runtime question: objc_getClassList lies to me...
- From: Greg Parker <email@hidden>
- Date: Mon, 28 Jul 2003 15:32:40 -0700
On Monday, July 28, 2003, at 02:34 PM, Martin Hdcker wrote:
Isn't there some call into ZeroLink that I can do that will force it
to load all ObjC-Classes?
I mean it somehow defeats the purpose of objc_getClassList when it
doesn't give me all Classes (although somehow it doesn't lie because
it really doesn't know of those classes. :)
So is there some way at runtime to load all images, or force the
runtime to at least load all objc classes it can find? (obviously
objc_lookUpClass can do it).
The only thing you can do is disable ZeroLink. Loading absolutely all
available classes would involve linking them upfront, and the whole
point of ZeroLink is to link as late as possible. There are some cases
like this where ZeroLink's lazier linking causes undesirable program
behavior, and there's no way to work around it.
--
Greg Parker email@hidden Java & Objective-C
_______________________________________________
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.