Is there a way to control the brightness of the OS X desktop programmatically using Cocoa or Core Animation?
相关问题
- CALayer - backgroundColor flipped?
- NSOutlineView drag line stuck + blue border
- iphone sdk see size of local file (one created
- How can you detect the connection and disconnectio
- Animating GMSMarker in a circular path
相关文章
- Converting (u)int64_t to NSNumbers
- “getter” keyword in @property declaration in Objec
- NSMenuItem KeyEquivalent “ ”(space) bug
- Detect if cursor is hidden on Mac OS X
- NSNumberFormatter doesn't allow typing decimal
- Is subclassing NSNotification the right route if I
- Creating an NSMutableArray with a literal via muta
- adding click action to NSTextField
In case you were actually interested in doing a fade-out or fade-in of the whole screen, here is a link describing how to do that.
The linked document contains examples for how to fade all displays (or a single display) to black (you can change the color), capture the display (where you can display what you'd like), and then fade back. This uses
CGAcquireDisplayFadeReservation()
mentioned in the comment to my other answer.Is this more like what you were looking for?
Create a semi-transparent full-screen view behind your main window.