---
title: NSWorkspace.OpenConfiguration
framework: appkit
role: symbol
role_heading: Class
path: appkit/nsworkspace/openconfiguration
---

# NSWorkspace.OpenConfiguration

The configuration options for opening URLs or launching apps.

## Declaration

```swift
class OpenConfiguration
```

## Overview

Overview Create an NSWorkspace.OpenConfiguration object before launching an app or opening a URL using the shared NSWorkspace object. Use the properties of this object to customize the behavior of the launched app or the handling of the URLs. For example, you might tell the app to hide itself immediately after launch.

## Topics

### Handling URLs

- [requiresUniversalLinks](appkit/nsworkspace/openconfiguration/requiresuniversallinks.md)
- [isForPrinting](appkit/nsworkspace/openconfiguration/isforprinting.md)

### Specifying app-related behaviors

- [activates](appkit/nsworkspace/openconfiguration/activates.md)
- [addsToRecentItems](appkit/nsworkspace/openconfiguration/addstorecentitems.md)
- [allowsRunningApplicationSubstitution](appkit/nsworkspace/openconfiguration/allowsrunningapplicationsubstitution.md)
- [createsNewApplicationInstance](appkit/nsworkspace/openconfiguration/createsnewapplicationinstance.md)
- [hides](appkit/nsworkspace/openconfiguration/hides.md)
- [hidesOthers](appkit/nsworkspace/openconfiguration/hidesothers.md)

### Prompting the user

- [promptsUserIfNeeded](appkit/nsworkspace/openconfiguration/promptsuserifneeded.md)

### Specifying launch attributes

- [appleEvent](appkit/nsworkspace/openconfiguration/appleevent.md)
- [arguments](appkit/nsworkspace/openconfiguration/arguments.md)
- [environment](appkit/nsworkspace/openconfiguration/environment.md)
- [architecture](appkit/nsworkspace/openconfiguration/architecture.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Environment

- [NSWorkspace](appkit/nsworkspace.md)
- [NSAppKitVersion](appkit/nsappkitversion.md)
- [LSMinimumSystemVersion](bundleresources/information-property-list/lsminimumsystemversion.md)
