---
title: pmPrintSession()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nsprintinfo/pmprintsession()
---

# pmPrintSession()

Returns a Core Printing object configured with the print info’s session information.

## Declaration

```swift
func pmPrintSession() -> UnsafeMutableRawPointer
```

## Return Value

Return Value A pointer to a PMPrintSession object, an opaque type that stores information about a print job. You should not call PMRelease to release the returned object, except to balance calls to PMRetain that your code also issued.

## Discussion

Discussion The information in the returned PMPrintSession object is consistent with the receiver’s session information at the time this method is called. Subsequent changes to the receiving NSPrintInfo object do not result in changes to the information in the PMPrintSession object.

## See Also

### Accessing Core Printing Information

- [printSettings](appkit/nsprintinfo/printsettings.md)
- [NSPrintInfo.SettingKey](appkit/nsprintinfo/settingkey.md)
- [pmPageFormat()](appkit/nsprintinfo/pmpageformat().md)
- [pmPrintSettings()](appkit/nsprintinfo/pmprintsettings().md)
- [updateFromPMPageFormat()](appkit/nsprintinfo/updatefrompmpageformat().md)
- [updateFromPMPrintSettings()](appkit/nsprintinfo/updatefrompmprintsettings().md)
- [takeSettings(from:)](appkit/nsprintinfo/takesettings(from:).md)
