• 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: Classes in bundles
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
References: 
 >Classes in bundles (From: Will Thimbleby <email@hidden>)

  • Prev by Date: Re: .pax?
  • Next by Date: Re: cocoa and argv
  • Previous by thread: Re: Classes in bundles
  • Next by thread: Help with offscreen drawing
  • Index(es):
    • Date
    • Thread