![]() Default operations, such as creating new windows, showing the UI for saving files, or tracking whether a document has been edited, are provided and controlled by the document controller in a document based app. ![]() All documents in an app are handled by another controller, called NSDocumentController. Also, the represented data by a document (the data that is displayed in a window and users work with) is known as the document content. Such an object is responsible for representing the data users deal with in a window, as well as for providing some default functionalities that we’ll talk about and put in motion later in this post (like writing files to disk, or reading back from it).Ī document contains at least one window controller, which in turn contains a window, and that window contains a content view controller that implements all the UI users interact with. Editor’s note: If you are new to macOS development, you can check out this tutorial first.īehind each window on a document based app there is a document, an instance of the NSDocument class.
0 Comments
Leave a Reply. |