Re: substitute class at runtime?
Re: substitute class at runtime?
- Subject: Re: substitute class at runtime?
- From: Nick Zitzmann <email@hidden>
- Date: Fri, 18 Jul 2008 12:05:40 -0600
On Jul 18, 2008, at 12:00 PM, Nathaniel Gottlieb-Graham wrote:
if ([classNameArray containsObject:nameOfClass])
{
[[[??????? alloc]initWithNibName:nameOfClass] autorelease]
}
How can I get the class name into the ??????? part?
Substitute the ?????? with a Class data structure, which you can get
by calling +class on any object.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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