Re: determining format of NSImageRep
Re: determining format of NSImageRep
- Subject: Re: determining format of NSImageRep
- From: Sherm Pendley <email@hidden>
- Date: Mon, 24 Mar 2003 21:26:26 -0500
On Monday, March 24, 2003, at 07:49 PM, John C. Randolph wrote:
The best way I can think of to know what kind of image format is in the
NSData object is to look for the known headers of various image types.
(JFIF, etc.)
A great way to do that is magic. Seriously - check out the /etc/magic
file, and get a description of its format and use in the man page "man
magic". There, you'll find a metric boatload of "magic numbers" that can
be used to identify a file's contents.
sherm--
C programmers never die - they're just cast into void.
_______________________________________________
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.