• 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
DisplayReconfigurationCallBack with nil cgDisplayID
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DisplayReconfigurationCallBack with nil cgDisplayID


  • Subject: DisplayReconfigurationCallBack with nil cgDisplayID
  • From: Trygve Inda <email@hidden>
  • Date: Thu, 23 Aug 2012 06:55:33 -0700
  • Thread-topic: DisplayReconfigurationCallBack with nil cgDisplayID

Very occasionally when my MyDisplayReconfigurationCallBack is called:

void DisplayReconfigurationCallBack (CGDirectDisplayID cgDisplayID,
CGDisplayChangeSummaryFlags flags, void *userInfo)

The system sends me a nil value for cgDisplayID

When I try to cycle through the array of NSScreen to find the one that
matches cgDisplayID it never finds it since 0 is not a valid cgDisplayID.

What is causing this?

I mostly see it on Thunderbolt Macs

Trygve



_______________________________________________

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: DisplayReconfigurationCallBack with nil cgDisplayID
      • From: Michael Babin <email@hidden>
  • Prev by Date: NSDocument package saving invalidates wrapper? Options?
  • Next by Date: Re: text highlighting with CALayer and NSTextVew
  • Previous by thread: NSDocument package saving invalidates wrapper? Options?
  • Next by thread: Re: DisplayReconfigurationCallBack with nil cgDisplayID
  • Index(es):
    • Date
    • Thread