INAppStoreWindow icon indicating copy to clipboard operation
INAppStoreWindow copied to clipboard

bad window button positioning on Yosemite

Open mackuba opened this issue 10 years ago • 4 comments

I've run my app (built on Xcode 6.1) on Yosemite, and I've noticed that the three buttons in the top-left are positioned incorrectly - they sit in the top-left part of the title bar like in standard apps, and they jump to center-left of the bar when the window is moved. Is this a known issue (or something you've fixed on master)?

mackuba avatar Nov 06 '14 14:11 mackuba

screen shot 2014-11-06 at 15 04 58 screen shot 2014-11-06 at 15 05 07

mackuba avatar Nov 06 '14 14:11 mackuba

I also get this issue, and the same behaviour is observed when buttons are in traffic light mode, i.e. they don't change to traffic lights until the window is moved.

ThanosSiopoudis avatar Nov 11 '14 14:11 ThanosSiopoudis

Quick (and dirty) workaround until a fix becomes available:

__unsafe_unretained typeof (self) weakSelf = self;
self.window.titleBarDrawingBlock = ^(BOOL drawsAsMainWindow, CGRect drawingRect, CGRectEdge rectEdge, CGPathRef clippingPath) {
    [[NSNotificationCenter defaultCenter] postNotificationName:NSWindowDidMoveNotification object:weakSelf.window];
}

ThanosSiopoudis avatar Nov 11 '14 16:11 ThanosSiopoudis

Same issue here. 👍

One other thing to note: It fixes itself when you move (or resign/make key) the window, yet the buttons' tracking area stays in the wrong location.

berkcebi avatar Mar 09 '15 21:03 berkcebi