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

Re: objc_category?


  • Subject: Re: objc_category?
  • From: petite_abeille <email@hidden>
  • Date: Sun, 16 Mar 2003 21:09:12 +0100

On Saturday, Mar 15, 2003, at 21:11 Europe/Zurich, publiclook wrote:

I don't think this is possible.

Just for the record... it's very possible to get all the objc_category haunting an objc runtime... but... it's a pain in the, er, neck...

But thanks to the guidance of Steve Nygard's excellent class-dump, it turns out to be less of an odyssey than feared:

http://people.omnigroup.com/nygard/Projects/

Anyway, the gist of it is as follow:

- get the relevant mach_header load_command
- get the relevant segment_command
- build a list of relevant section
- loop through each section symtab to get its objc_category list

Convoluted, but works as advertised. If anybody knows of a more straightforward way, I would love to hear about it :-)

Cheers,

PA.
_______________________________________________
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: 
 >Re: objc_category? (From: publiclook <email@hidden>)

  • Prev by Date: ScreenSaver Problem
  • Next by Date: Re: NSRunLoop looping more than once?
  • Previous by thread: Re: objc_category?
  • Next by thread: NSMutableArray/NSArray and lossyCString
  • Index(es):
    • Date
    • Thread