Re: parameterized object creation
Re: parameterized object creation
- Subject: Re: parameterized object creation
- From: John James <email@hidden>
- Date: Fri, 15 Apr 2005 05:55:50 -0400
Thanks all that responded; That was it.
On Apr 14, 2005, at 11:55 PM, Anthony Duer wrote: It is like deserialize but with out the member values. I want to allocate an instance of an object given a string set to its class name. How is this done?
You often see stuff like this for plug-ins...
Class theClass = NSClassFromString(classNameAsString); id theObject = [[theClass alloc] init];
~Anthony Duer
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden