On May 12, 2008, at 11:01 PM, Jens Alfke wrote:


On 12 May '08, at 8:15 PM, Ben Lowndes wrote:

I'm a cocoa newbie, so I may be missing something obvious here: I'd
like to get a list of open windows for all currently running
applications.

Nothing personal, but people seem to ask this question here about once a week ... and I just have to ask "why"? What kind of application are you working on? I can't think of a compelling usage for this, other than writing some kind of window-management utility (or malware...)

I have a couple of screen measurement tools for which I could
have used those APIs had I ever been able to make any sense
of them.    For instance, in the GuideLines app, I would like
to be able to query the top-most window under the cursor for
its content view and sub-views so as to align the guides to
a document's borders.

And, yes, perusing a bunch of 'private' APIs a couple of years
ago, I wondered about the potential for malicious or mischievous
apps.    The  CGWindowListCopyWindowInfo  mentioned later sounds
like what I could use, and it's read-only . . .

    Cheers,
        ........  Henry


===============================+============================
  Henry McGilton, Boulevardier |    Trilithon Software
   Objective-C/Java Composer   |     Seroia Research
-------------------------------+----------------------------
  mailto:[EMAIL PROTECTED]   |   http://www.trilithon.com
                               |
===============================+============================




_______________________________________________

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 [EMAIL PROTECTED]

Reply via email to