<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSWorkspace/shared",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSWorkspace(cpy)sharedWorkspace"
  },
  "title" : "shared"
}
-->

# shared

The shared workspace object.

```
class var shared: NSWorkspace { get }
```

## Return Value

The `NSWorkspace` object associated with the process.

## Discussion

You can access this object safely from any thread in your app.

## See Also

  [Workspace Services Programming Topics](https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/Workspace/introduction.html#//apple_ref/doc/uid/10000100i)



---

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)