Skip navigation.
 
mlidentifying image files
FROM : Markus Ruggiero
DATE : Fri Jan 24 23:29:12 2003

I am learning Cocoa and am writing a simple slide show programm (who
has not?). The user can drop anything (files, folders) onto my app an
I want to add the filename to an internal list. What is the simplest
way to identify if a given filename represents an image file? The
files may or may not have an extension and some of the files do have
HFS type codes. I do not want to add everything to the list and then
later find out while creating the NSImage that this is not an image
file. I know about NSImage's +imageFileTypes but fail to see how this
could help me filter (This is a drag'n'drop app without an explicit
open menu, thus I don't use any NSOpenPanel).

The whole program is up and running, the only thing missing is the
image file filter. What is the best way to do this?

Thanks for any hints
---markus---
--
Markus Ruggiero

rucotec consulting and technologies    email    mailto:<email_removed>
rucotec GmbH                                web      http://www.rucotec.ch
Steinentorstrasse 8
4051 Basel                                  Mobile    +41 (0)79 508 4701
Switzerland                                Phone/Fax +41 (0)61 271 4990

Related mailsAuthorDate
mlidentifying image files Markus Ruggiero Jan 24, 23:29
mlRe: identifying image files Nick Zitzmann Jan 25, 00:57
mlRe: identifying image files Luc Regnault Jan 25, 03:35
mlRe: identifying image files David Dunham Jan 25, 09:51