CGWindowListCreate() and CGWindowListCreateDescriptionFromArray() are probably your best bet, with the accessibility APIs being another option.
Note that that UI controls are sometimes implemented as separate windows, but from the user's perspective they belong to a parent window; this is something you'll likely need to consider when using these APIs. For example, just because a window is at the beginning of the window list returned from CGWindowListCreate(), doesn't mean it's what the user would consider the "active window." _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com