NSPopover gets corrupted if -popoverShouldClose: returns NO when detaching
| Originator: | me | ||
| Number: | rdar://13799357 | Date Originated: | 02-May-2013 07:08 PM |
| Status: | Open | Resolved: | |
| Product: | OS X | Product Version: | 10.8.3 (12D78) |
| Classification: | Serious Bug | Reproducible: | Always |
02-May-2013 07:08 PM Jonathon Mah: When an NSPopover is detached to a window, it calls -popoverWillClose: on its delegate, passing the notification with the "detach to window" reason. But then it calls -popoverShouldClose:, and if the delegate happens to return NO (because that method has different criteria), the popover's window remains on-screen in a broken state. -popoverShouldClose: should NOT be called in that case, because the popover has already decided that it will close (it has sent and posted WillClose).
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!