Re: Constructing class names dynamically
Re: Constructing class names dynamically
- Subject: Re: Constructing class names dynamically
- From: Greg Parker <email@hidden>
- Date: Thu, 15 Jan 2009 14:54:11 -0800
On Jan 15, 2009, at 10:27 AM, Mohan Parthasarathy wrote:
I have tried this to make sure that the class is loaded, but not
working:
[[NSBundle mainBundle] classNamed:clsName];
[self loadBundleForClass:clsName];
Class cls = NSClassFromString(clsName);
I still get nil.. What am i missing ?
You can set environment variables to watch the runtime load classes.
OBJC_PRINT_IMAGES=YES
OBJC_PRINT_CLASS_SETUP=YES
If the class you want is loaded, you'll be able to see it there.
--
Greg Parker email@hidden Runtime Wrangler
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden