It might be reasonable to ask Apple for a preference which
dissociates closing the lid from the act of putting the system to
sleep, although I would strongly expect that this would be refused
for several sensible reasons, but it is *not* reasonable to ask for
a programmatic way to subvert the user's intent in the fashion the
OP desires.
I've worked on a product which was essentially a background program
that was doing live device communication. Often, users chose "Sleep"
from the menu bar and accidentally interrupted the communication,
causing the device to suddenly stop and files to be truncated
prematurely.
What happens if you start a file copy to/from a server in Finder and
then put the machine to sleep? I hope it either warns the user or
completes the copy before sleeping.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden