Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Visceral

macrumors newbie
Original poster
Jul 10, 2011
2
0
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.