FROM : kentozier
DATE : Sat Jun 28 23:37:15 2008
Hi
I'm writing a "KFile" class that encapsulates a bunch of file operations that are spread out over several Cocoa and Carbon classes and want to have a couple of testing methods such as "isImageFile", "isMusicFile", "isTextFile" etc. I'm trying to avoid hard coding HFS types and/or file extensions and have it perform these tests much like the Finder does in it's search window where you can specify file kind as "Images", "Music", "Text", "Movies" etc. Is there any any built in way, in either Cocoa or Carbon, to get a list of types that correspond to say "Images" or perform a test on a specific file that returns true for "Images"?
Thanks for any help
DATE : Sat Jun 28 23:37:15 2008
Hi
I'm writing a "KFile" class that encapsulates a bunch of file operations that are spread out over several Cocoa and Carbon classes and want to have a couple of testing methods such as "isImageFile", "isMusicFile", "isTextFile" etc. I'm trying to avoid hard coding HFS types and/or file extensions and have it perform these tests much like the Finder does in it's search window where you can specify file kind as "Images", "Music", "Text", "Movies" etc. Is there any any built in way, in either Cocoa or Carbon, to get a list of types that correspond to say "Images" or perform a test on a specific file that returns true for "Images"?
Thanks for any help
| Related mails | Author | Date |
|---|---|---|
| kentozier | Jun 28, 23:37 | |
| Oleg Svirgstin | Jun 28, 23:47 | |
| Owen Yamauchi | Jun 29, 00:23 |






Cocoa mail archive

