Xmas
Christmas is when we I have the most special feeling. The cool air, the snow, the reunion, the church bell ringing, …

(From google)
It ‘s beginning to look a lot like Christmas. First with Xcode
Xmas
Xmas is an Xcode plugin that shows Xmas picture along with wishing message whenever a build succeeds

How it works
Swift
- Try to do much of the job in Swift as possible
DVTKit
- Xcode uses
DVTBezelAlertPanelto display alert. So we swizzle itsinitWithIcon:message:parentWindow:duration: -
DVTBezelAlertPanelis fromDVTKit. I thought about importing run time header and justextensionit. But I find swizzling in Objective C a much more easier solution
NSVisualEffectView
- It seems that
NSImageadded to the panel ‘sNSVisualEffectViewhad ittemplateset to YES again, hence causing the image into template color with the panel background color - This happens in the
initmethod. So we must changetemplateback to NO afterinithappens
1 |
- (id)xmas_initWithIcon:(id)icon |
And, Merry Christmas to you and your family
