NSWindow
NSWindow
- Subject: NSWindow
- From: Jerry Krinock <email@hidden>
- Date: Mon, 30 Nov 2015 10:23:37 -0800
Apple has made a huge change in the way windows are drawn in El Capitan, which I cannot find mentioned in the Release Notes. Here are some examples:
1. Create a NSWindow, send it a -display message, and then in that same run loop cycle execute some task of noticeable duration. In 10.10, the window will appear on the screen before the task starts. In 10.11, the window does not appear until after the task is complete.
2. Programatically create an NSOpenPanel, then display it by executing -beginWithCompletionHandler:, and in the compleetion handler, execute some task of noticeable duration. In 10.10, when user dismisses the panel, it will disappear from the screen immediately and whatever was behind it will show again. In 10.11, the open panel is immediately replaced by a white rectangle, which will remain on the screen until the task in the completion handler is finished executing.
3. In *many* applications, including BBEdit 11 (latest version), Finale 2014, Apple’s MainStage 2 (which I realize is an old version), and NeoOffice 3.4.1, more often when they are first installed or updated, typically on launch, you will see a black rectangle for up to several seconds before it is replaced by a window of some kind. There is actually a reproducible behavior in MainStage 2: Running in 10.11, the spash screen has no background, just the text under where I think there was a progress bar. In 10.10, I remember a lot of graphics.
I’ve confirmed this behavior on three different Macs.
Did I miss the announcement of this rather major change? I suspect that all three have the same cause, which is that, starting in 10.11, drawing by -[NSWindow display] is now deferred until the run loop cycles.
I have posted a small project demonstrating examples 1 and 2:
https://github.com/jerrykrinock/El-Cap-Drawing
_______________________________________________
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