Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I create a Document-based application from a plain App, so it is equivalent to starting from the Document stationery?

0
Posted

How do I create a Document-based application from a plain App, so it is equivalent to starting from the Document stationery?

0

A15 The key to making a Document-based application is having a Document Type in the plist, which describes the Document and specifies the class. That’s how the instantiation of your document occurs. You will also need to connect up all the traditional File actions to FirstResponder, that’s done for you using the Document stationery. Adding actions of your document to be triggered by menu items is a royal pain – you have to copy the actions across and add to the First Responder in the MainMenu.nib Create the Document nib file and set its files Owner to your custom Doc class. Easiest way to copy Actions is to have the Document and MainMenu nib files open so you can see the custom Document class in the Classes tab – using the Attributes tab of the info panel will let you double click an Action and copy its name. Then click on FirstResponder in the MainMenu.nib and Add an action, pasting in the name. This could have been made vastly easier by being able to just drag the Actions across betw

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123