• 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: UTI for Mach-O file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UTI for Mach-O file


  • Subject: Re: UTI for Mach-O file
  • From: Kevin Wojniak <email@hidden>
  • Date: Wed, 25 Aug 2010 11:57:27 -0700

You could just handle all files, then once the file is selected verify it's valid, displaying an error if it's not.

See:
- <mach-o/fat.h>
- <mach-o/loader.h>
- http://developer.apple.com/mac/library/documentation/DeveloperTools/Conceptual/MachORuntime/Reference/reference.html

Kevin


On Aug 25, 2010, at 10:46 AM, John Johnson wrote:

> Hello. I'm implementing an NSDocument-based utility that loads mach-o files and displays information about them. But no matter what UTI I put in the Info.plist, I can't get the app to recognize the file when dropped on the dock tile. The only way I could get it recognized is by having no UTI and a * for the extensions, but this has the (very) unfortunate side-effect of recognizing ALL files. I've tried com.apple.mach-o.binary and public.unix-executable as well as public.executable. It's curious, because running mdls shown no UTI for an executable...
> Can anyone tell me the best way to go from here, so that my app recognizes ONLY mach-o files? Is UTI's even the best way to go?
>
> Thanks,
> John_______________________________________________
>
> 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

_______________________________________________

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: 
 >UTI for Mach-O file (From: John Johnson <email@hidden>)

  • Prev by Date: UTI for Mach-O file
  • Next by Date: Re:UIViewController and splash screen orientation issue on iPad
  • Previous by thread: UTI for Mach-O file
  • Next by thread: Re: UTI for Mach-O file
  • Index(es):
    • Date
    • Thread