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.

See Also

Auxiliary Functions

NSDrawColorTiledRects

Draws a colored bordered rectangle.

NSInterfaceStyleForKey

Returns an interface style value for the specified key and responder.

Deprecated
NSSetShowsServicesMenuItem

Specifies whether an item should be included in Services menus.

NSCopyBits

Copies a bitmap image to the location specified by a destination point.

Deprecated
NSCountWindows

Counts the number of onscreen windows.

Deprecated
NSShowsServicesMenuItem

Specifies whether a Services menu item is currently enabled.

NSDottedFrameRect

Draws a bordered rectangle.

NSWindowList

Gets information about onscreen windows.

Deprecated
NSWindowListForContext

Gets information about an application’s onscreen windows.

Deprecated
NSReadPixel

Reads the color of the pixel at the specified location.

Deprecated
NSGetWindowServerMemory

Returns the amount of memory being used by a context.

Deprecated