• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSDocument-based application with NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDocument-based application with NSTextView


  • Subject: Re: NSDocument-based application with NSTextView
  • From: Markus Hitter <email@hidden>
  • Date: Thu, 11 Oct 2001 19:20:27 +0200

Am Donnerstag, 11. Oktober 2001 um 15:44 schrieb Tae-Won Ha:

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...)

How can I avoid this?

add this to your NSDocument subclass:

- (BOOL)isDocumentEdited {

return NO;
}


Markus

- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/


References: 
 >NSDocument-based application with NSTextView (From: Tae-Won Ha <email@hidden>)

  • Prev by Date: Re: half-initialized objects during decoding (Re: Persistance)
  • Next by Date: Re: Folding in a byte
  • Previous by thread: NSDocument-based application with NSTextView
  • Next by thread: Re: retain count (Re: half-initialized objects during decoding (Re: Persistance))
  • Index(es):
    • Date
    • Thread