• 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
Phantom NSDocuments?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Phantom NSDocuments?


  • Subject: Phantom NSDocuments?
  • From: Trevor Strohman <email@hidden>
  • Date: Thu, 27 Feb 2003 15:42:44 -0800

My current application project uses the NSDocument architecture. I have it up and running and it works well, except for this: the documents never seem to be deallocated. If I close a document window, the document will appear to go away, but the document instance stays around.

I didn't notice this behavior until I added calls to updateChangeCount: to indicate document dirtiness. Now, if I close a document that's dirty, a sheet appears (as it should), asking if I wish to save the document. If I decide not to save the document, the window goes away, but upon quitting the application the document pops back up and asks me to save again.

I have trapped the canCloseDocumentWithDelegate:shouldCloseSelector:contextInfo: call and verified that the document is telling the selector that it's okay to close.

Any ideas? Thanks!

Trevor Strohman
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: kitchens
  • Next by Date: Help: drawing text within drawPageBorderWithSize again
  • Previous by thread: Re: kitchens
  • Next by thread: Help: drawing text within drawPageBorderWithSize again
  • Index(es):
    • Date
    • Thread