• 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
loading executable code, NSBundle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Standard Input in Project Builder?
  • Next by Date: Data Image View
  • Previous by thread: Re: Standard Input in Project Builder?
  • Next by thread: Data Image View
  • Index(es):
    • Date
    • Thread