Re: Document can't be deleted after opening and closing it
Re: Document can't be deleted after opening and closing it
- Subject: Re: Document can't be deleted after opening and closing it
- From: Matt Gough <email@hidden>
- Date: Fri, 24 Jun 2005 11:55:43 +0100
On 24 Jun 2005, at 11:43, Matt Gough wrote:
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.
As a bit of further info, lsof does not list the file as being open.
Am going to dig out a 10.3.x system and see if it still goes wrong...
Matt Gough
_______________________________________________
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