Re: Instantiating an object by class from an NSString?
Re: Instantiating an object by class from an NSString?
- Subject: Re: Instantiating an object by class from an NSString?
- From: Omar Qazi <email@hidden>
- Date: Fri, 10 Feb 2006 21:02:52 -0800
You could also use [NSBundle classNamed:@"NSString"];
On Feb 10, 2006, at 8:22 PM, M. Carlson wrote:
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:
40roflsoftware.com
This email sent to email@hidden
_______________________________________________
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