• 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
Loading a class with a specific superclass from a bundle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Loading a class with a specific superclass from a bundle


  • Subject: Loading a class with a specific superclass from a bundle
  • From: Elan Feingold <email@hidden>
  • Date: Tue, 5 Aug 2008 08:19:51 -1000

Hi,

I can load the principal class of a bundle with:

NSBundle* bundleToLoad = [NSBundle bundleWithPath:@"..."];
Class exampleClass = [bundleToLoad principalClass]);

However, I have a situation where I have a bundle that has a class *without* a principal class, but it has a class that is a subclass of a specific other class. Is there any way to iterate through classes offered by a bundle and pick out the ones that derive from a specific superclass?

Thanks,

-elan
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Loading a class with a specific superclass from a bundle
      • From: Chris Hanson <email@hidden>
    • Re: Loading a class with a specific superclass from a bundle
      • From: "Michael Ash" <email@hidden>
    • Re: Loading a class with a specific superclass from a bundle
      • From: Bill Bumgarner <email@hidden>
  • Prev by Date: Re: GetDblTime, 64-bit, and cocoa
  • Next by Date: Re: reloading an NSTreeController
  • Previous by thread: Re: How is image drawing rate effected by image resolution and size?
  • Next by thread: Re: Loading a class with a specific superclass from a bundle
  • Index(es):
    • Date
    • Thread