FROM : David Duncan
DATE : Mon Jun 09 22:08:41 2008
On Jun 8, 2008, at 10:34 PM, Apparao Mulpuri wrote:
> In my Multi monitor application, i have to list out application
> names with respect to each monitor.
>
> Ex: Lets say Monitor 1(Primary monitor) having iTunes, AddressBook,
> Calculator and TextEdit(Multi Doc) application windows and Monitor2
> having TextEdit and Mail application windows.
>
> For Monitor1, i have to get iTunes, AddressBook, Calculator, TextEdit
> applications list and for Monitor2, it is TextEdit and Mail list.
>
> In Cocoa, is there any provision to achieve this?.
In Leopard you can use the CGWindow apis to get a list of all windows
on the screen (see the Son Of Grab sample code) and then use
CGGetDisplaysWithRect() to determine what displays each window is on.
--
David Duncan
Apple DTS Animation and Printing
david.<email_removed>
DATE : Mon Jun 09 22:08:41 2008
On Jun 8, 2008, at 10:34 PM, Apparao Mulpuri wrote:
> In my Multi monitor application, i have to list out application
> names with respect to each monitor.
>
> Ex: Lets say Monitor 1(Primary monitor) having iTunes, AddressBook,
> Calculator and TextEdit(Multi Doc) application windows and Monitor2
> having TextEdit and Mail application windows.
>
> For Monitor1, i have to get iTunes, AddressBook, Calculator, TextEdit
> applications list and for Monitor2, it is TextEdit and Mail list.
>
> In Cocoa, is there any provision to achieve this?.
In Leopard you can use the CGWindow apis to get a list of all windows
on the screen (see the Son Of Grab sample code) and then use
CGGetDisplaysWithRect() to determine what displays each window is on.
--
David Duncan
Apple DTS Animation and Printing
david.<email_removed>
| Related mails | Author | Date |
|---|---|---|
| Apparao Mulpuri | Jun 9, 07:34 | |
| Andrew Farmer | Jun 9, 07:45 | |
| David Duncan | Jun 9, 22:08 |






Cocoa mail archive

