Re: Store more complex values into NSDictionary

2010-02-25 Thread Andrew Salamon
I've run into the need for something like this often enough that I just end up writing a simple container class that mimic's C++'s pair class. Something like this: #import @interface My_Pair : NSObject { id first; id second; } + (My_Pair *)pairWith:(id)_first and:(id)_secon

Re: movieFileTypes, imageFileTypes and Info.plist's

2009-07-17 Thread Andrew Salamon
Thanks! I think using public.image and public.movie are going to work just fine. I can now drop images and movies onto my app's Finder icon, although not the Dock icon, yet. Andrew On Jul 16, 2009, at 3:00 PM, Mike Abdullah wrote: Pretty certain you do need to this manually. One option could

movieFileTypes, imageFileTypes and Info.plist's

2009-07-16 Thread Andrew Salamon
I'm using code something like this to build a list of file types that my application can read: NSArray *movieTypes = [[QTMovie movieFileTypes:QTIncludeCommonTypes] retain]; NSArray *imageTypes = [[NSImage imageFileTypes] retain]; allTypes = [[imageTypes arrayByAddingObjectsFromArray:movieTyp