• 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
Default app for doc type problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Default app for doc type problem


  • Subject: Default app for doc type problem
  • From: Greg Hamilton <email@hidden>
  • Date: Fri, 12 Sep 2003 12:46:00 +1000

Hi,

I've written a simple Cocoa Document based application which views PDF files. I've set all the appropriate Info.plist values (Identifier, Type, Signature, etc.) and can set it as the default app for the PDF docs. I can double click PDF documents to load them and drag documents onto the application icon in the dock and all that good stuff.

Things get a little confused when I install a new version over an old version. If I have the app icon in the dock dragging a document to it doesn't necessarily open the doc in the app anymore unless I remove the icon and put it back again. And if the previous version was set as the default viewer for PDF files the new version doesn't necessarily become the default viewer. Instead I have to make Preview the default viewer and then change back to my app again. The new version has the same name and is copied over the previous version. The only Info.plist entry I change b/w versions is the version number.

Is there something else I need to do or am I actually seeing a problem with Finder? I wonder if there isn't something the app could/should do on start-up to make sure it's registered with Finder/OSX properly.

Greg Hamilton
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Default app for doc type problem
      • From: Neil Earnshaw <email@hidden>
  • Prev by Date: Re: Notification Issue
  • Next by Date: full screen capture of another app's window
  • Previous by thread: Re: Pseudo-tty as piped to NSTask -- help?
  • Next by thread: Re: Default app for doc type problem
  • Index(es):
    • Date
    • Thread