Re: Unique ID for a Window?
Re: Unique ID for a Window?
- Subject: Re: Unique ID for a Window?
- From: Dave <email@hidden>
- Date: Wed, 29 Jul 2015 12:25:34 +0100
>
> From the Window Services Reference:
>
> kCGWindowNumber
> The value for this key is a CFNumberRef <https://developer.apple.com/library/mac/documentation/CoreFoundation/Reference/CFNumberRef/index.html#//apple_ref/c/tdef/CFNumberRef> type (encoded as kCGWindowIDCFNumberType <https://developer.apple.com/library/mac/documentation/Carbon/Reference/CGWindow_Reference/Constants/Constants.html#//apple_ref/c/macro/kCGWindowIDCFNumberType>) that contains the window ID. The window ID is unique within the current user session.
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.
Cheers
Dave
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden