On Jun 12, 2010, at 5:18 AM, Ben wrote:

> Given an NSData object, with no context as to what it might be, is it 
> possible to find if it contains a document of recognised file type?

Honestly, the best option I can think of is to use NSTask to run /usr/bin/file. 
Or look up the source code of that tool on the Apple open-source site and build 
it into your app.

—Jens_______________________________________________

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

Reply via email to