• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Any better way to determine if file is executable?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Any better way to determine if file is executable? (From: Charles Steinman <email@hidden>)
 >Re: Any better way to determine if file is executable? (From: Devon Ferns <email@hidden>)

  • Prev by Date: Attributed string in user defaults, is RTFD data OK?
  • Next by Date: Re: Attributed string in user defaults, is RTFD data OK?
  • Previous by thread: Re: Any better way to determine if file is executable?
  • Next by thread: Three New Documents Available for Cocoa and QuickTime Developers
  • Index(es):
    • Date
    • Thread