Re: Any better way to determine if file is executable?
Re: Any better way to determine if file is executable?
- Subject: Re: Any better way to determine if file is executable?
- From: Douglas Davidson <email@hidden>
- Date: Wed, 31 Oct 2007 09:06:40 -0700
On Oct 31, 2007, at 8:40 AM, Devon Ferns wrote:
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
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden