Re: Dynamic support of image file formats
Re: Dynamic support of image file formats
- Subject: Re: Dynamic support of image file formats
- From: Ryan Britton <email@hidden>
- Date: Wed, 16 Aug 2006 18:11:44 -0700
The correct UTI for an image is public.image. Have you tried using
this?
On Aug 16, 2006, at 5:55 PM, Ron Aldrich wrote:
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
_______________________________________________
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