Hi,
I created a basic document-based application with a NSTextView in it's UI and am able to get it working properly. The value in the text view gets converted to an NSAttributedString instance variable of the NSDocument subclass and this NSAttributedString is then converted to NSData and returned in the dataOfType:error: method which is called every time the application is closed.
Now, if I add another NSTextField to the UI and want it also to work, how to do it? dataOfType:error: can return just one NSData after all and in my understanding that is the method which makes the data persist.
I created a basic document-based application with a NSTextView in it's UI and am able to get it working properly. The value in the text view gets converted to an NSAttributedString instance variable of the NSDocument subclass and this NSAttributedString is then converted to NSData and returned in the dataOfType:error: method which is called every time the application is closed.
Now, if I add another NSTextField to the UI and want it also to work, how to do it? dataOfType:error: can return just one NSData after all and in my understanding that is the method which makes the data persist.