• 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: NSDocument: how to save document as a simple text file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDocument: how to save document as a simple text file


  • Subject: Re: NSDocument: how to save document as a simple text file
  • From: Ondra Cada <email@hidden>
  • Date: Fri, 26 Apr 2002 19:05:10 +0200

On Friday, April 26, 2002, at 06:20 , Gilles Celli wrote:

Well several readers (thanx) pointed out to use the method writeToFile:path
atomically: to save it as a text file.

But how do I get the "path" when I choose to save from the menu
With "File -> Save as..." ?

And where should I put this method in
Of (NSData *)dataRepresentationOfType:(NSString *)aType ?

In this case, you don't want writeToFile:atomically:. You want the -[NSString dataUsingEncoding:allowLossy:] instead.
---
Ondra Hada
OCSoftware: email@hidden http://www.ocs.cz
2K Development: email@hidden http://www.2kdevelopment.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.
References: 
 >NSDocument: how to save document as a simple text file (From: Gilles Celli <email@hidden>)

  • Prev by Date: Re: Sometimes a method gets called, sometimes it doesn't.
  • Next by Date: Re: NSDocument: how to save document as a simple text file
  • Previous by thread: NSDocument: how to save document as a simple text file
  • Next by thread: Re: NSDocument: how to save document as a simple text file
  • Index(es):
    • Date
    • Thread