Re: parameterized object creation
Re: parameterized object creation
- Subject: Re: parameterized object creation
- From: Daniel DeCovnick <email@hidden>
- Date: Thu, 14 Apr 2005 23:49:47 -0400
[[NSClassFromString(@"NSObject") alloc] init];
Is that what you're looking for?
-Dan
Daniel DeCovnick
danhd123 at mac dot com
Softyards Software
http://www.softyards.com
On Apr 14, 2005, at 10:08 PM, John James wrote:
I think I have seen this before, but I can't remember what it is
called so I can not find how to
look it up.
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?
I could do it with a case statement, but I think I remember there is a
more fundamental way. Something
in ObjC that does this directly.
thanks
_______________________________________________
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