Function

SMJobCopyDictionary(_:_:)

Copy the job description dictionary for the given job label.

Declaration

func SMJobCopyDictionary(_ domain: CFString!, _ jobLabel: CFString) -> Unmanaged<CFDictionary>!

Parameters

domain

The job's domain (e.g. kSMDomainSystemLaunchd).

jobLabel

The label identifier for the job to copy.

Return Value

A new dictionary describing the job, or NULL if the job could not be found. Must be released by the caller.

Discussion

SMJobCopyDictionary returns a copy of the job description dictionary for the given job label, or NULL if no job with the given label was found or an error occurred.

See Also

Examining Jobs

func SMCopyAllJobDictionaries(CFString!) -> Unmanaged<CFArray>!

Copy the job description dictionaries for all jobs in the given domain.

Deprecated