FROM : Steve Christensen
DATE : Sun May 04 01:09:28 2008
On May 3, 2008, at 3:52 PM, Jere Gmail wrote:
> I want to list all the running apps and their windows.
> Running apps is easy with [ws launchedApplications] but I cant find a
> way for listing their windows.
> I have tried NSWindowList(win_count,arr_win) but then
> [[NSApplication sharedApplication] windowWithWindowNumber:arr_win[i]]
> in a bucle will give me no info on windows from other apps.
> Can anyone help? Thanks
Each application has its own private address space, so including
another app's windows in your app's window list doesn't make sense.
The only way to find out about other app's windows is to have the
user enable accessibility in System Preferences. This has already
been discussed in detail here and on other lists. You might try doing
a search to see what's already been said.
DATE : Sun May 04 01:09:28 2008
On May 3, 2008, at 3:52 PM, Jere Gmail wrote:
> I want to list all the running apps and their windows.
> Running apps is easy with [ws launchedApplications] but I cant find a
> way for listing their windows.
> I have tried NSWindowList(win_count,arr_win) but then
> [[NSApplication sharedApplication] windowWithWindowNumber:arr_win[i]]
> in a bucle will give me no info on windows from other apps.
> Can anyone help? Thanks
Each application has its own private address space, so including
another app's windows in your app's window list doesn't make sense.
The only way to find out about other app's windows is to have the
user enable accessibility in System Preferences. This has already
been discussed in detail here and on other lists. You might try doing
a search to see what's already been said.
| Related mails | Author | Date |
|---|---|---|
| Jere Gmail | May 4, 00:52 | |
| Steve Christensen | May 4, 01:09 | |
| Jean-Daniel Dupas | May 4, 01:17 | |
| Jere Gmail | May 4, 11:28 | |
| Jere Gmail | May 4, 11:33 | |
| Jean-Daniel Dupas | May 4, 12:10 | |
| Chris Hanson | May 5, 01:11 | |
| Adam Leonard | May 5, 01:24 | |
| Jere Gmail | May 5, 09:47 |






Cocoa mail archive

