Function

NSCountWindowsForContext

Counts the number of onscreen windows belonging to a particular application.

Declaration

void NSCountWindowsForContext(NSInteger context, NSInteger *count);

Discussion

Counts the number of onscreen windows belonging to a particular application, identified by context, which is a window server connection ID. The function returns the number by reference in count.

Use of this function is discouraged as it may be deprecated in a future release.