在这种情况下,文档是什么?
我对文档架构有点困惑。让我们看看 MSN for Mac - 该应用程序中的文档是什么?联系人名单?我们插入的文本是为了与其他人交谈?
当需要将数据保存或读取到应用程序中时,应该读取什么类型的数据?联系人列表或聊天记录?
更新: 再往前推一点,什么是文档?应用程序准备打开的文件类型?
I'm a bit confused regarding the document architecture. Lets look at MSN for Mac - what would the document be in that application? The contact list? The text we insert to talk to other people?
When the need comes to save or read data into the application, what type of data should it read? Contact lists or chat logs?
Update:
Pushing this a bit forward, what is a document? A file type that the application is prepared to open?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
也许 Mac 版 MSN 不是一个文档架构应用程序。并非每个程序都需要使用相同的系统。
一般来说,“文档”就是您所说的内容;组成应用程序文件的数据。它可以引用磁盘上的文档(具有特定的文件类型)或运行时文档(它们是应用程序中相互关联的模型对象的集合)。
您的应用程序可能支持保存/加载各种不同磁盘文件类型的文档,但它们都可以在运行时用相同的模型对象表示。
Maybe MSN for mac isn't a document-architecture application. Not every program needs to use the same system.
In general, a 'document' is just what you say; the data that makes up your application's files. It can refer to documents on disk - which have a particular filetype, or runtime documents, which are a collection of interrelated model objects in your application.
Your application might support saving/loading documents of various different on-disk filetypes, but they could all be represented with the same model objects at runtime.
MSN 客户端和其他聊天应用程序创建和查看日志文件。据我所知,他们无法编辑它们,但这是一个功能 - 毕竟它们是日志文件。有更简单的方法来创建此类日志文件,但这些应用程序执行此操作的方式具有良好的伪随机性,这是一些人喜欢的。有点像SO但又不同。
MSN clients and other chat applications create and view logfiles. They can't edit them, as far as I know, but that's a feature - they're logfiles after all. There are easier ways to create such logfiles, but there is a nice pseudorandom quality to the way these applications do it which some people prefer. Sort of like SO but different.