Re: Classes in bundles
Re: Classes in bundles
- Subject: Re: Classes in bundles
- From: Ondra Cada <email@hidden>
- Date: Thu, 15 Aug 2002 14:46:44 +0200
On Thursday, August 15, 2002, at 01:32 , Will Thimbleby wrote:
Is there a simple way to load classes up from bundles inside the
application that inherit from classes in the application? And how would
you create these bundles.
Well, yes and no. With the standard ObjC runtime, the superclass needs to
be available at the moment the subclass is loaded (if you consider the
class structure, it is quite natural). Therefore, you can't have the
superclass in a bundle and a subclass in the application; though, you can
have a superclass in bundle A and the subclass in bundle B, if you ensure
A is loaded before B.
Alas, Mac OS X messed up things mightily with its two-level namespace:
unless you switch the thing off, not even that is possible, and you are
forced to use very inconvenient -- and sometimes plain impossible --
workarounds using extra frameworks (which contain the superclass and are
loaded into both bundles and/or to the application).
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.