• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Dynamically creating a class
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dynamically creating a class


  • Subject: Dynamically creating a class
  • From: Dirk Theisen <email@hidden>
  • Date: Thu, 22 Nov 2001 16:52:32 +0100 (Europe/Berlin)

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)


  • Follow-Ups:
    • Re: Dynamically creating a class
      • From: Chris Kane <email@hidden>
  • Prev by Date: Re: Contextual Menus for an NSOutlineView
  • Next by Date: Re: Mutability
  • Previous by thread: Re: Contextual Menus for an NSOutlineView
  • Next by thread: Re: Dynamically creating a class
  • Index(es):
    • Date
    • Thread