Open kalvish21 opened 8 years ago
@kalvish21
a workaround here(Swift):
let aWindow = self.window as! INAppStoreWindow
aWindow.titleBarDrawingBlock = {[unowned self] drawsAsMainWindow, drawingRect, edge, clippingPath in
NSNotificationCenter.defaultCenter().postNotificationName(NSWindowDidMoveNotification, object:self.window)
}
Can I know waht this code does? and which version of swift?
I use the default traffic light buttons on OSX. For some strange reason when I do beginSheet on my app and show an NSWindow, the traffic light buttons go to the top. Right now the height is 38 on the titleBar.
Is there a way to fix this?