Erica Sadun


Erica Sadun. iPhone. iPod touch. Macintosh. and More.

Coding: Dump your 1.1.1 framework headers

Erica Sadun | 8:44 am | October 16, 2007 | Coding

Here’s how:

#!/bin/csh
# Erica Sadun - Class-dump your new frameworks, 16 October 2007
# Set your tree root as desired
#

set treeroot = /Volumes/TVMovies/iphone111/System/Library/Frameworks/
set dumproot = ~/include
cd $treeroot

foreach dc (*)
   if (-d "$dc") then
      echo $dc "is a directory. About to dump its classes"
      set raw = `echo $dc | sed "s/.framework//"`
      echo $raw
      mkdir -p $dumproot/$raw
      pushd $dumproot/$raw
         class-dump -H $treeroot/$dc/$raw
      popd
   else
      echo $dc "is not a directory. Skipping."
   endif
end

No Comments »

No comments yet.

Comments RSS.

Leave a comment

You must be logged in to post a comment.

Previous and Next Entry

« Core rocks | iPhone Emergency Blinker »

wordpress | sheepdip design by mahud © 2007