On 29 Jul 2015, at 13:25, Dave <d...@looktowindward.com> wrote:
> Yes I saw this, I wasn’t sure what “Current User Session” meant in this case. 
> Also if there could be a window owned by one App with the same CGWindowNumber 
> as another App, IOW, if there could be more than one Window in the Window 
> Array that has the same number? e.g. I need more than once piece of info to 
> ensure it is unique.


 AFAIK it's the number the window server uses to identify a window. So unless 
you have multiple user sessions (i.e. you have a second user logged in using 
Fast User Switching), there is only one window with that ID at a time. It is 
unique across all the applications running under the same user's account. Which 
usually is all windows your application can see (unless your app is running as 
root, but really, nobody except maybe login screen plugin developers would do 
that).

 Note that I'm saying "at a time". There is no guarantee that an application 
might not close the window whose number you have, then open a new one, and get 
a new window with the same number. It's unlikely to happen, but I don't think 
it's stated anywhere that that is impossible. OTOH, also keep in mind that an 
application might close a window and re-open it instead of just hiding and 
showing it, which might change its window number.

Cheers,
-- Uli Kusterer
"The Witnesses of TeachtText are everywhere..."



_______________________________________________

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to