Re: Creating a Class Instance By Name
Re: Creating a Class Instance By Name
- Subject: Re: Creating a Class Instance By Name
- From: Seth Willits <email@hidden>
- Date: Wed, 8 Dec 2004 08:57:16 -0800
On Dec 7, 2004, at 9:26 PM, Stéphane Sudre wrote:
Any reason why you don't want to use the Cocoa APIs?
Class myClass;
id myInstance;
myClass=NSClassFromString(@"MyClassName");
myInstance=[myClass alloc];
Thanks to all the people that responded with this on-list and off. I
don't know where I missed that. I thought I looked in all of the
logical places, but apparently not! Thanks again,
Seth Willits
------------------------------------------------------------------------
---
President and Head Developer of Freak Software - http://www.freaksw.com
REALbasic Guru at ResExcellence - http://www.resexcellence.com/realbasic
"There are 10 types of people in this world - those that understand
binary
and those that don't."
------------------------------------------------------------------------
---
_______________________________________________
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