Anyways, I pretty much copied some code from the link I gave before
and it works very fast and finds
some other executables that my previous method did not. Thanks to
whoever at Apple that wrote it.
You're welcome. :) For future reference, most of the
CheckExecutableArchitecture functionality is available in Leopard via
CFBundle/NSBundle APIs, CFBundleCopyExecutableArchitectures(),
CFBundleCopyExecutableArchitecturesForURL(), and -[NSBundle
executableArchitectures]. See the Leopard release notes for more
details. For the purposes of this assignment,
CFBundleCopyExecutableArchitecturesForURL() would suffice to detect
Mach-o executables, but it does not distinguish PEF/CFM or other types
of executables.
Douglas Davidson
_______________________________________________
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