Re: NSPersistentDocument problem
Re: NSPersistentDocument problem
- Subject: Re: NSPersistentDocument problem
- From: Tomek Piatek <email@hidden>
- Date: Thu, 17 Nov 2005 17:45:02 +1300
I may have found a solution to my problem:
canCloseDocumentWithDelegate:shouldCloseSelector:contextInfo:
I would still like to hear what other ideas you might have.
cheers,
tomek
On Nov 17, 2005, at 4:42 PM, Tomek Piatek wrote:
Hi Folks,
I am implementing a simple CoreData Document-based application. My
implementation of my document class is pretty minimal and basically
only overwrites "initWithType:error:" method. Here's my problem:
Each document has an NSTimer which triggers a method which updates
some time statistics for the document. The problem is that when I
try to save the document and eventually close it the timer keeps
firing. I would like to perform some tasks, like invalidating the
timer, when the user decides to save their document or when they
try to close the window of an unsaved document. I can't find
anything in the documentation that looks like a suitable candidate
for overwriting.
Any help will be greatly appreciated.
cheers,
tomek
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden