Re: objc_category?
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.