FROM : John Clayton
DATE : Tue May 13 17:22:01 2008
Hi Ben,
Take a look at the new Leopard only CGWindowListCopyWindowInfo
method. Its probably what you are looking for and is able to provide
a list of windows in z-order, including rect position (screen relative
of course), pid, title etc. You cant modify windows using this API,
but you'll be able to query them at least.
Enjoy.
--
John Clayton
http://www.coderage-software.com/
On May 13, 2008, at 8:13 AM, Ben Lowndes wrote:
> On Tue, May 13, 2008 at 4:01 PM, Jens Alfke <<email_removed>>
> 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...)
>
> Yes, exactly: I'm working on a window management utility (or I'm
> trying to...).
>
>> And BTW, if you search the list archives you'll find easily 100
>> messages on
>> this exact topic just in the past two or three months.
>
> Being new to Cocoa, at first it's difficult to phrase the question
> correctly when searching for the answer; so for the benefit of future
> searchers the solution seems to lie in using the accessability API or
> an input manager. Is that correct?
>
> Thanks,
> Ben
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> 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/john_clayton
> %40mac.com
>
> This email sent to <email_removed>
DATE : Tue May 13 17:22:01 2008
Hi Ben,
Take a look at the new Leopard only CGWindowListCopyWindowInfo
method. Its probably what you are looking for and is able to provide
a list of windows in z-order, including rect position (screen relative
of course), pid, title etc. You cant modify windows using this API,
but you'll be able to query them at least.
Enjoy.
--
John Clayton
http://www.coderage-software.com/
On May 13, 2008, at 8:13 AM, Ben Lowndes wrote:
> On Tue, May 13, 2008 at 4:01 PM, Jens Alfke <<email_removed>>
> 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...)
>
> Yes, exactly: I'm working on a window management utility (or I'm
> trying to...).
>
>> And BTW, if you search the list archives you'll find easily 100
>> messages on
>> this exact topic just in the past two or three months.
>
> Being new to Cocoa, at first it's difficult to phrase the question
> correctly when searching for the answer; so for the benefit of future
> searchers the solution seems to lie in using the accessability API or
> an input manager. Is that correct?
>
> Thanks,
> Ben
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> 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/john_clayton
> %40mac.com
>
> This email sent to <email_removed>
| Related mails | Author | Date |
|---|---|---|
| Ben Lowndes | May 13, 05:15 | |
| Andrew Farmer | May 13, 05:28 | |
| Steve Christensen | May 13, 06:39 | |
| Jens Alfke | May 13, 08:01 | |
| Ben Lowndes | May 13, 08:13 | |
| Graham Cox | May 13, 08:26 | |
| Jean-Daniel Dupas | May 13, 10:46 | |
| Jens Alfke | May 13, 17:11 | |
| John Clayton | May 13, 17:22 | |
| Ken Thomases | May 13, 20:26 | |
| Henry McGilton (St… | May 14, 04:48 |






Cocoa mail archive

