loading executable code, NSBundle
loading executable code, NSBundle
- Subject: loading executable code, NSBundle
- From: Andreas Wolf <email@hidden>
- Date: Mon, 30 Apr 2001 15:53:15 -0700
Hi cocoa-dev, again!
I'll forward the price for the first posting to the people that actually
answered my newbie questions.
Now I'd like to know what I did wrong using NSBundle to load my
executable code from a separate project.
In my actual project I did my
NSBundle *bundle = [NSBundle bundleWithPath: myOtherProjectPath];
to get hands on executable code from an other project.
[bundle bundlePath]; returns the correct Path. It's the Path to a fully
functional
single document application.
But when try to get my class:
if(componentClass = [bundle principalClass])
I get nils and can't instantiate my class. Same thing happens with
bundle method classNamed:
Do I need to change anything in the old Project in order to make it
loadable?
I really appreciate your helps,
-Andy