• 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: file extensions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: file extensions


  • Subject: Re: file extensions
  • From: Andy Lee <email@hidden>
  • Date: Tue, 10 Sep 2002 13:28:02 -0400

At 1:05 AM -0700 9/10/02, James McCartney wrote:
problem #2.
My app creates files that end in ".rtf"
I want my app to open the .rtf files that I create. I have code to set the type and creator codes when I write the file. This code succeeds and when I click on a .rtf file I've created it opens in my app. However if I edit this file with my app and resave it (my type creator code again successfully sets the creator), then when I reopen it, it opens in TextEdit. If I use Open to reopen my file I find that the creator has reverted to zero. What is going on?
What SHOULD I do to get a .rtf file to open in my app as if the user had set the Get Info to do that?

I think the issue is not how you write the file, it's a matter of application settings.

Under the "Targets" tab in PB you can specify file extensions that your app recognizes. In the Jaguar PB, it's in aitem called "Document Types" in a section called "Info.plist Entries". I think if you add the .rtf and .sc file extensions and rebuild your app, the Finder will know to consider your app as a candidate for opening those files. You might have to log out and back in.

--Andy
_______________________________________________
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: file extensions
      • From: James McCartney <email@hidden>
References: 
 >file extensions (From: James McCartney <email@hidden>)

  • Prev by Date: Re: Internet Explorer and Flash integration
  • Next by Date: Re: IB and smb volumes
  • Previous by thread: Re: file extensions
  • Next by thread: Re: file extensions
  • Index(es):
    • Date
    • Thread