• 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: List classes in Bundle?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: List classes in Bundle?


  • Subject: Re: List classes in Bundle?
  • From: Keith Duncan <email@hidden>
  • Date: Wed, 22 Jul 2009 18:29:22 +0100

I've not used it but I recalled a runtime function objc_copyClassNamesForImage() which you might be able to use to localise your search to a specific bundle (instead of enumerating all the Objective-C classes).

Keith

On 22 Jul 2009, at 18:05, glenn andreas wrote:


On Jul 22, 2009, at 12:00 PM, Robert Mullen wrote:

Is there a way to actually list all the classes in a given bundle? I know I can look one up if I know the name but I would like to actually be able to present a list.

If the bundle is loaded, you should be able to iterate through all the classes in the system (using the various routines in the runtime), and check to see if bundleForClass returns the bundle you are looking for.


If it hasn't been loaded, you can parse the macho file format and examine the objective-c sections, but that's a lot of work...


Glenn Andreas email@hidden <http://www.gandreas.com/> wicked fun! Mad, Bad, and Dangerous to Know

_______________________________________________

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

_______________________________________________

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: List classes in Bundle?
      • From: Jean-Daniel Dupas <email@hidden>
References: 
 >List classes in Bundle? (From: Robert Mullen <email@hidden>)
 >Re: List classes in Bundle? (From: glenn andreas <email@hidden>)

  • Prev by Date: Re: UUID method Garbage Collection safe?
  • Next by Date: Re: List classes in Bundle?
  • Previous by thread: Re: List classes in Bundle?
  • Next by thread: Re: List classes in Bundle?
  • Index(es):
    • Date
    • Thread