Re: Document-based application and "complex" save
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.