Re: Pausing workspace actions
Re: Pausing workspace actions
- Subject: Re: Pausing workspace actions
- From: Jörn Salewski <email@hidden>
- Date: Fri, 30 Jan 2004 12:12:10 +0100
am 30.01.2004 6:03 Uhr schrieb Clifton R. unter email@hidden:
>
Hello everybody!
>
>
I have a method which runs in its own NSThread. It must perform its
>
operation on a CD when the user ejects it (when it unmounts). My
>
problem is that I need the CD to remain in the drive while the
>
operation proceeds and then eject once the operation is finished.
>
>
My program watches for the workspaceWillUnmount notification, but I
>
have no way of holding this action until my threaded method performs
>
its duties.
>
I' no expert on this, but I think you could try to put a lock on one of the
files.
Anyway, you must be prepared not to be able to finish your operation.
Consider a situation in which the user uses an external drive and by
accident the power supply goes off or the cable is unpluged.
Yours,
Joern Salewski
_______________________________________________
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.