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

Re: NSBundle Classes


  • Subject: Re: NSBundle Classes
  • From: Ondra Cada <email@hidden>
  • Date: Mon, 8 Jul 2002 14:31:12 +0200

On Monday, July 8, 2002, at 04:11 , email@hidden wrote:

Is it possible to produce subclasses of classes contained in bundles, or to to create categories and the like for them?

Sure (presumed the bundle with basic class gets dynamically loaded before the one with subclass or category, but that's self-evident). ObjC has no problem with that at all.

There is a big problem though, which is caused by the two-level namespace (itself caused by the sad fact that the Carbon rot does not have any decent naming conventions). Therefore, if you need to use "non-existing" (since they will be loaded dynamically) classes, you have to switch two-level namespace off.

If that is not an option (which, alas, often is not, since the Carbon rot is almost anywhere and its names clash with almost anything), it's (*so far as I know*) impossible anymore -- all classes used for sublcassing or categorising from more dynamically loaded bundles then just have to be pre-loaded somehow, possibly (if your design supports it) by placing them into an extra framework.

It's pretty inconvenient. Some people though would shout how good two-level namespace is and how great a feature it is anyway :((((
---
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: 
 >NSBundle Classes (From: email@hidden)

  • Prev by Date: Re: Non-standard Cocoa RTF Unicode encoding?
  • Next by Date: Re: dealloc not beeing called... why?
  • Previous by thread: NSBundle Classes
  • Next by thread: Subclassing NSLayoutManager
  • Index(es):
    • Date
    • Thread