<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSWorkspace/extendPowerOff(by:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSWorkspace(im)extendPowerOffBy:"
  },
  "title" : "extendPowerOff(by:)"
}
-->

# extendPowerOff(by:)

Requests the system wait for the specified amount of time before turning off the power or logging out the user.

```
func extendPowerOff(by requested: Int) -> Int
```

## Parameters

`requested`

The number of milliseconds to wait before turning off the power or logging off the user.

## Return Value

The number of milliseconds granted by the system. This method currently returns `0`.

## Discussion

This method currently does nothing. Do not call it.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)