diff --git a/ChangeLog b/ChangeLog
index 992ceac9e..55fbcb3f8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,7 @@
the extra copies AppCopy1 AppCoppy2 etc.
* Source/NSWorkspace.m: Use advertised port name for the app name so
that other apps can contact it.
+ Implement ([-extendPowerOffBy:]) to ask workspace application.
* Tools/gclose.m: Triavial utility ... counterpart for gopen ...
close doen an application.
* Tools/GNUmakefile: build gclose
diff --git a/Source/NSWorkspace.m b/Source/NSWorkspace.m
index 85e177583..965d1f7d2 100644
--- a/Source/NSWorkspace.m
+++ b/Source/NSWorkspace.m
@@ -1395,12 +1395,25 @@ inFileViewerRootedAtPath: (NSString*)rootFullpath
}
/*
- * Requesting Additional Time before Power Off or Logout
+ * Requesting Additional Time before Power Off or Logout
+ * Returns the amount of time actually granted (which may be less than
+ * requested).
+ * Times are measured in milliseconds.
*/
- (int) extendPowerOffBy: (int)requested
{
- // FIXME
- return 0;
+ int result = 0;
+ id app = [self _workspaceApplication];
+
+ if (app != nil)
+ {
+ NS_DURING
+ result = [app extendPowerOffBy: requested];
+ NS_HANDLER
+ result = 0;
+ NS_ENDHANDLER
+ }
+ return result;
}
@end