Re: parameterized object creation
Re: parameterized object creation
- Subject: Re: parameterized object creation
- From: Will Mason <email@hidden>
- Date: Thu, 14 Apr 2005 20:53:27 -0700 (PDT)
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
> [[NSClassFromString(@"NSObject") alloc] init];
>
> Is that what you're looking for?
Or even more simply:
[NSClassFromString(@"<the class name>") new];
If the class doesn't exist in the run time, then you'll get back nil
from the above, so you should probably check for that.
Will
_______________________________________________
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