Re: Dynamically creating a class
Re: Dynamically creating a class
- Subject: Re: Dynamically creating a class
- From: Chris Kane <email@hidden>
- Date: Fri, 23 Nov 2001 20:40:34 -0700
The 'objc4' project is available from Darwin to look at, if that'd
help. It might help debugging.
There are probably several tricks. The one I know of that you might be
hitting is that the selectors in the method lists MUST be registered
through sel_registerName() (and the results of that function used as the
field values).
Chris Kane
Cocoa Frameworks, Apple
On Thursday, November 22, 2001, at 08:52 AM, Dirk Theisen wrote:
Hi!
I want to dynamically creat a subclass of a given objc class, add
methods to it and so forth.
Therefore, I already fiddled with the runtime and was able to add
methods to existing classes and to create subclass-structs. The classes
created do work partly. Esp. adding method to those classes makes the
runtime freak out.
Is there any info on what to do in order to create a subclass at runime?
Has anybody written code to accomplish that?
Regards,
Dirk
--
Dirk Theisen <email@hidden>
Diplominformatiker
Rvmerstr. 164, D-53117 Bonn (Germany)
Tel. +4922873-4504 (Fax: -4382)
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev