Specify the desired role or roles for an application to claim with respect to an item or family of items.
SDKs
- macOS 10.0+
- Mac Catalyst 13.0+
Framework
- Core Services
Declaration
struct LSRolesMask
Overview
This bit mask is passed to functions that find the preferred
application for a given item or family of items (LSGet
, LSGet
, LSGet
),
or that determine whether a given application can open a designated
item (LSCan
, LSCan
),
to specify the application’s desired role or roles with respect
to the item. For example, to request only an editor application,
specify k
;
if either an editor or a viewer application is acceptable, specify k
.