Document can't be deleted after opening and closing it
Document can't be deleted after opening and closing it
- Subject: Document can't be deleted after opening and closing it
- From: Matt Gough <email@hidden>
- Date: Fri, 24 Jun 2005 11:43:48 +0100
I recently noticed that if I open any of our documents and then close
it without saving and then put that document in the Trash and try and
empty the trash that the Finder says that the Trash can't be emptied
because the document is busy.
Even quitting our app doesn't help the situation.
FYI:
This is on 10.4.1. I have no idea if it happened previously. I guess
not since I am sure I would have noticed it by now.
We are overriding -(BOOL) [NSDocument readFromFile:(NSString *)
fileName ofType:(NSString *)aType];
but in the case in point, we just end up calling [super
readFromFile:fileName ofType:aType];
Our - (BOOL)loadDataRepresentation:(NSData *)data ofType:(NSString *)
aType
ends up using a KeyedUnarchiver on the Data.
I have used fs_usage to see if all the opens are matched with a close
and they do seem to be.
Has anyone got any ideas as to why this could happen.
Matt Gough
Softchaos Limited
_______________________________________________
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