Dynamic support of image file formats
Dynamic support of image file formats
- Subject: Dynamic support of image file formats
- From: Ron Aldrich <email@hidden>
- Date: Wed, 16 Aug 2006 17:55:19 -0700
Folks,
I'm trying to add dynamic file format support to my application,
along the lines of that provided in the ImageApp sample
(ImageDocController.m).
I've pretty much cloned ImageDocController and ImageApp's info.plist
into my application, but when I run it, the open dialog does not
allow me to select any documents.
When I set a breakpoint in ImageDocController.fileExtensionsFromType:
in ImageApp, I see that it gets called multiple times, each time with
a different typename (public.jpeg, public.tiff, etc...).
When I set the same breakpoint in my application, it gets only once,
with a typename of "Image" (or, more accurately, the value of the
CFBundleTypeName key in my info.plist file).
Of course, when fileExtensionsForType gets called with "Image" as
it's typename, it fails, because "Image" is not a properly formed UTI
type.
Anyone have any clue as to what I might be missing?
Thanks,
Ron Aldrich
Software Architects, Inc.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden