• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Unique ID for a Window?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Unique ID for a Window?
      • From: Uli Kusterer <email@hidden>
References: 
 >Unique ID for a Window? (From: Dave <email@hidden>)
 >Re: Unique ID for a Window? (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: Re: Unique ID for a Window?
  • Next by Date: Re: Unique ID for a Window?
  • Previous by thread: Re: Unique ID for a Window?
  • Next by thread: Re: Unique ID for a Window?
  • Index(es):
    • Date
    • Thread