• 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
Re: Leopard: fileExtensionsFromType: deprecation breaks saving with extension
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Leopard: fileExtensionsFromType: deprecation breaks saving with extension


  • Subject: Re: Leopard: fileExtensionsFromType: deprecation breaks saving with extension
  • From: "Adam R. Maxwell" <email@hidden>
  • Date: Fri, 09 Nov 2007 13:06:23 -0800

On Friday, November 09, 2007, at 12:49PM, "Fritz Anderson" <email@hidden> wrote:

>When I try to save my application's document, the document does not
>get the proper extension. An extensive diagnostic (below) appears in
>the debugger console. The document, including type, UTI, and
>extension, is declared properly in the Properties tab of the Target
>Info. (Or at least, properly as of Tiger, and to the full extent that
>window permits.)
>
>I also cannot open old documents that had the correct extension. (Yes,
>saving worked before, and I can't determine what went wrong.)
>
>My question, in brief, is: How do I get the behavior I believe I am
>specifying?

The easiest thing to do is delete LSItemContentTypes from your Info.plist.  Alternately, compiling against the 10.4 SDK should give you the 10.4 behavior.  For those of us who added LSItemContentTypes and tried to use UTIs in Tiger, the situation in NSDocument/NSDocumentController sucks; I finally just removed LSItemContentTypes.

Personally I think the number of deprecated methods in NSDocument/NSDocumentController is out of control, since your open/save/export code paths change depending on OS, SDK, and existing overrides.

[...]

>The message says I should declare my UTI in
>UTExportedTypeDeclarations. But Xcode does not provide a UI for
>creating or editing that list.

You have to hand-edit Info.plist to add it, as far as I know.

--
adam
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Leopard: fileExtensionsFromType: deprecation breaks saving with extension
      • From: email@hidden
References: 
 >Leopard: fileExtensionsFromType: deprecation breaks saving with extension (From: Fritz Anderson <email@hidden>)

  • Prev by Date: Leopard: fileExtensionsFromType: deprecation breaks saving with extension
  • Next by Date: Re: Smart way to get "etched" borders in Leopard
  • Previous by thread: Leopard: fileExtensionsFromType: deprecation breaks saving with extension
  • Next by thread: Re: Leopard: fileExtensionsFromType: deprecation breaks saving with extension
  • Index(es):
    • Date
    • Thread