• 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
RE: Load Framework at runtime.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Load Framework at runtime.


  • Subject: RE: Load Framework at runtime.
  • From: Rosyna <email@hidden>
  • Date: Tue, 22 Nov 2005 22:03:33 +0900

You didn't quite answer the question. And yes, you loaded your frameworks bundle.. using NSBundle.

Try [[NSBundle alloc] initWithPath:] instead (and do not release the NSBundle instance).

How are you calling the functions in the framework?

Ack, at 11/22/05, Harmanpreet Bachal said:

I did not load a bundle but loaded a Framework at runtime.
If u r asking for the code then here is what I did::

NSBundle * b1 = [NSBundle bundleWithPath:@"whatever"];
[b1 load];

This loaded my framework and i successfully called it's functions but could not register my notification.

Thnx.



Subject: Re: Load Framework at runtime.

When you load the framework, do not release it. Do not add it to an
autorelease pool. Just let the NSBundle instance leak. That may fix
your problem.

How are you getting the calls? NSClassFromString()?

Ack, at 11/22/05, Harmanpreet Bachal said:

 >I did it using NSBundle's load method and it get's loaded. I am
 >facing another problem in that i try to register a notifiaction
 >which uses this Framework but my app crashes as soon as i enter the
 >class in which i try to register it. When i comment the registration
 >of notification part my app works as it should.
 >   I tried adding the Framework to the Linked frameworks( in stead of
 >loading it at runtime) and it worked fine however i cannot do this.
 >   Any advice on this??
 >   Thanks,

--


Sincerely, Rosyna Keller Technical Support/Holy Knight/Always needs a hug

Unsanity: Unsane Tools for Insanely Great People

It's either this, or imagining Phil Schiller in a thong.
 _______________________________________________





<http://us.lrd.yahoo.com/_ylc=X3oDMTFqODRtdXQ4BF9TAzMyOTc1MDIEX3MDOTY2ODgxNjkEcG9zAzEEc2VjA21haWwtZm9vdGVyBHNsawNmYw--/SIG=110oav78o/**http://farechase.yahoo.com/>Yahoo! FareChase - Search multiple travel sites in one click.

--


Sincerely, Rosyna Keller Technical Support/Holy Knight/Always needs a hug

Unsanity: Unsane Tools for Insanely Great People

It's either this, or imagining Phil Schiller in a thong.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • RE: Load Framework at runtime.
      • From: Harmanpreet Bachal <email@hidden>
References: 
 >RE: Load Framework at runtime. (From: Harmanpreet Bachal <email@hidden>)

  • Prev by Date: RE: Load Framework at runtime.
  • Next by Date: Re: app icons
  • Previous by thread: RE: Load Framework at runtime.
  • Next by thread: RE: Load Framework at runtime.
  • Index(es):
    • Date
    • Thread