• 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: Ondra Cada <email@hidden>
  • Date: Tue, 10 Sep 2002 11:46:01 +0200

On Tuesday, September 10, 2002, at 10:05 , James McCartney wrote:

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?

Don't. Well, I don't know what your app does, but generally, you should let *user* to decide how and where to open his RTFs. An app which, if occassionally used to edit some file, steals it for itself (by adding its creator to it) is a royal pain in the neck!
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
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: Learning lex/yacc (was: Book- Building cocoa applications)
  • Next by Date: NSMatrix for column of NSviews?
  • Previous by thread: file extensions
  • Next by thread: Re: file extensions
  • Index(es):
    • Date
    • Thread