Planet Bonk

2004-12-19

 

Cocoa-Programmierung: Klasse dynamisch instantiieren

Ich habe folgendes Vorgehen recherchiert, um eine Klasse einer Anwendung dynamisch zu instantiieren:

...
NSBundle* theAppBundle = [NSBundle mainBundle];
Class aClass = [theAppBundle classNamed:@"AClassName"];
AClassName* anObject = [[aClass alloc] init];
...

Impressum

Archiv

2004/12
2005/01
2005/02
2005/03
2005/04
2005/05
2005/06
2005/07
2005/08
2005/09

This page is powered by Blogger. Isn't yours?