Skip to content

Instantly share code, notes, and snippets.

@erynofwales
Created September 29, 2012 04:54
Show Gist options
  • Save erynofwales/3803218 to your computer and use it in GitHub Desktop.
Save erynofwales/3803218 to your computer and use it in GitHub Desktop.
Generate a list of CoreFoundation, etc. classes
find -E /System/Library/Frameworks/{Foundation,Cocoa,QuartzCore}.framework \
-iregex '.*/(ns|ca).+\.h$' \
-exec awk '/@interface.+:/ {
cls = $2;
if (cls ~ /:$/) {
cls = substr(cls, 1, length(cls)-1)
}
print cls;
}' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment