• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Dynamic support of image file formats
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Dynamic support of image file formats
      • From: Ryan Britton <email@hidden>
  • Prev by Date: Re: NSDocument open/new file problem when model object instance is in nib.
  • Next by Date: Multiple Document Types.
  • Previous by thread: Re: Implementing saving & loading
  • Next by thread: Re: Dynamic support of image file formats
  • Index(es):
    • Date
    • Thread