• 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: Document-based application and "complex" save
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Document-based application and "complex" save


  • Subject: Re: Document-based application and "complex" save
  • From: mmalcolm crawford <email@hidden>
  • Date: Wed, 15 Oct 2003 09:34:21 -0700

On Oct 15, 2003, at 6:58 AM, Rustam Muginov wrote:

I have a document-based application, which is using some complex file
structures. Imagine some object description stored in the text-based files,
which could include other text files using relative paths.
[...]
I have overwritten the writeToFile:ofType: method, and it seems like Cocoa
first asking me to save the file to some temporary folder.
If I would save the included files here, would Cocoa transfer them to the
original position?
If no, are where any other ways to solve my problem?

Try
- (BOOL)writeToFile:(NSString *)fileName ofType:(NSString *)docType

"This method is one of the location-based primitives. Subclasses can override this method instead of overriding dataRepresentationOfType: to write document data to the file system as an NSData object after creating that object from internal data structures. Subclasses that handle file packages such as RTFD or that treat locations of files as anything other than paths should override this method."

mmalc
_______________________________________________
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: 
 >Document-based application and "complex" save (From: Rustam Muginov <email@hidden>)

  • Prev by Date: NSTableView corrupts the last column
  • Next by Date: Re: Newbie NSView question.
  • Previous by thread: Document-based application and "complex" save
  • Next by thread: Re: Document-based application and "complex" save
  • Index(es):
    • Date
    • Thread