Re: Type of NSData contents
Re: Type of NSData contents
- Subject: Re: Type of NSData contents
- From: Jens Alfke <email@hidden>
- Date: Sat, 12 Jun 2010 12:25:50 -0700
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 (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