NSDocument-based application with NSTextView
NSDocument-based application with NSTextView
- Subject: NSDocument-based application with NSTextView
- From: Tae-Won Ha <email@hidden>
- Date: Thu, 11 Oct 2001 15:44:30 +0200
I have a NSDocument-based application with NSTextView(graphics allowed
and so on) in the window. Whenever I type something in the TextView the
window shows that the Doc is edited. (i.e. If I close the window, the
window asks me whether I want to save the doc or not...) I tried to
implement "[NSWindowObject setDocumentEdited:No];" in one of delegate
methods windowWillClose: & windowShouldClose:. However it did not work.
How can I avoid this?
Thanks in advance!
Tae-Won Ha
=)