Function

NSWindowListForContext

Gets information about an application’s onscreen windows.

Declaration

void NSWindowListForContext(NSInteger context, NSInteger size, NSInteger *list);

Discussion

Provides an ordered list of onscreen windows for a particular application, identified by context, which is a window server connection ID. It fills list with up to size window numbers; the order of windows in the array is the same as their order in the window server’s screen list (their front-to-back order on the screen). Use the count obtained by the NSCountWindowsForContext function to specify the size of the array for this function.

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
NSCountWindowsForContext

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

Deprecated
NSShowsServicesMenuItem

Specifies whether a Services menu item is currently enabled.

NSDottedFrameRect

Draws a bordered rectangle.

NSWindowList

Gets information about 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