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 (Cocoa-dev@lists.apple.com) > > 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: > http://lists.apple.com/mailman/options/cocoa-dev/kainjow%40kainjow.com > > This email sent to kain...@kainjow.com _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com