Instantiating an object by class from an NSString?
Instantiating an object by class from an NSString?
- Subject: Instantiating an object by class from an NSString?
- From: "M. Carlson" <email@hidden>
- Date: Sat, 11 Feb 2006 04:22:21 +0000
If I have the class namestring of a Cocoa class in an NSString, e.g., like
this:
NSString *myClassName = @"NSArray";
...how can I use the class specified in variable 'myClassName' to
instantiate a member of this class (in this example, an NSArray)?
--M
_______________________________________________
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