RE: NSBundle dynamic loading problem
RE: NSBundle dynamic loading problem
- Subject: RE: NSBundle dynamic loading problem
- From: "Josh Ferguson" <email@hidden>
- Date: Mon, 19 Dec 2005 15:44:36 -0600
- Thread-topic: NSBundle dynamic loading problem
Uli,
If I print the description of the NSBundle instance to the console prior
to calling -load on it, it indicates that it's not yet loaded...and then
after calling -load it states that it is loaded.
Josh
-----Original Message-----
From: Uli Kusterer [
mailto:email@hidden]
Sent: Monday, December 19, 2005 3:36 PM
To: Josh Ferguson
Cc: email@hidden
Subject: Re: NSBundle dynamic loading problem
Am 19.12.2005 um 22:03 schrieb Josh Ferguson:
>
I know that the OS isn't returning a cached pointer for the Bundle,
>
as I
>
get the appropriate version from the bundle.
That doesn't have any significance. NSBundle may have loaded the
code, but not yet the version number. Since you just replaced the old
framework's files, all files that weren't open or cached before will
be picked up from the new version (e.g. the Info.plist). Your
framework is in an inconsistent state.
If you want to test something similar, launch an application, then
delete it. It will keep running, but will perform worse and worse and
fail with error messages because whenever it closes a file it
actually is deleted, but until then it's still available.
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
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