Re: Looking for ideas about displaying unkown-type data
Re: Looking for ideas about displaying unkown-type data
- Subject: Re: Looking for ideas about displaying unkown-type data
- From: Sherm Pendley <email@hidden>
- Date: Sat, 17 Aug 2002 20:19:29 -0400
On Saturday, August 17, 2002, at 07:32 PM, Gerben Wierda wrote:
I recognize if the data is displayable? Some sort of 'file' command,
but then inside Cocoa, maybe? I'd rather not write the uncompressed
file somewhere first. And I do want to be able to display compressed
ASCII files just like that (so running everything through od is not an
option).
The 'file' command gets its info from /etc/magic. Contrary to what the
name of the file would lead you to believe, there's not much magic
happening; it just looks for specific sequences of bytes or character
strings at known offsets within the file.
sherm--
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.