• 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
Adding HFS file type to a file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Adding HFS file type to a file


  • Subject: Adding HFS file type to a file
  • From: Tom Gray <email@hidden>
  • Date: Wed, 24 Sep 2003 19:47:10 -0400

I have created a method which exports the data from my NSDocument
subclass as either rtf or text. I have used the OS X convention of
appending an extension to the file name to indicate the file's type. I
would like to add the HFS file type and creator to a file I am creating
with NSData and NSString writeToFile:atomically: method. I can do this
for the document with fileAttributesToWriteToFile:ofType:saveOperation:
but I don't know how to do this for the exported file.

Thanks!


Tom Gray
email@hidden
_______________________________________________
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: Adding HFS file type to a file
      • From: Charles Srstka <email@hidden>
  • Prev by Date: loadNibNamed:owner: Who disposes of the loaded objects?
  • Next by Date: NSDocument architecture question
  • Previous by thread: WebView - New Window Problem
  • Next by thread: Re: Adding HFS file type to a file
  • Index(es):
    • Date
    • Thread