For a view controller that is part of an app extension, the app extension context.
- macOS 10.10+
If the view controller is not part of an app extension, the value of this property is
By checking for
nil you can employ this method to determine whether the view controller is part of an app or an app extension, for the purpose of conditionalizing your view controller implementation. Refer to
NSExtension for information about the extension context.