create subclass in code
create subclass in code
- Subject: create subclass in code
- From: email@hidden
- Date: Fri, 26 Nov 2004 18:24:35 -0500
Is it possible to create a subclass of another class without actually
writting the interface and implementation files?
here's an example:
Class myNewClass;
myNewClass = [[NSButton class] subclass];
then use it like this:
id someObj = [[myNewClass alloc] init];
I know this eems weird but i have a very good reason for it. Hopefully,
there's some way to do this.
thanks
Alex
_______________________________________________
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