Re: [PATCH v2] ui/cocoa: Fix openFile: deprecation on Big Sur

2021-03-22 Thread Peter Maydell
On Sun, 10 Jan 2021 at 00:14, Roman Bolshakov wrote: > Now if we apply the workaround mentioned in the article [1] that > switches focus to Dock and then back to the app we can resolve the issue > in QEMU: > > diff --git a/ui/cocoa.m b/ui/cocoa.m > index f32adc3074..0986891ca0 100644 > --- a/ui/co

Re: [PATCH v2] ui/cocoa: Fix openFile: deprecation on Big Sur

2021-01-12 Thread Peter Maydell
On Fri, 8 Jan 2021 at 22:20, Peter Maydell wrote: > > On Fri, 8 Jan 2021 at 21:47, Roman Bolshakov wrote: > > > > On Fri, Jan 08, 2021 at 03:05:55PM +, Peter Maydell wrote: > > > This menu bar breakage appears to be caused by this patch. I have > > > no idea why, because the patch looks prett

Re: [PATCH v2] ui/cocoa: Fix openFile: deprecation on Big Sur

2021-01-09 Thread Roman Bolshakov
On Sun, Jan 10, 2021 at 02:13:48AM +0100, BALATON Zoltan wrote: > On Sun, 10 Jan 2021, Roman Bolshakov wrote: > > On Sat, Jan 09, 2021 at 12:13:36AM +0100, BALATON Zoltan wrote: > > > On Sat, 9 Jan 2021, Roman Bolshakov wrote: > > > > On Fri, Jan 08, 2021 at 03:00:07PM +, Peter Maydell wrote: >

Re: [PATCH v2] ui/cocoa: Fix openFile: deprecation on Big Sur

2021-01-09 Thread BALATON Zoltan
On Sun, 10 Jan 2021, Roman Bolshakov wrote: On Sat, Jan 09, 2021 at 12:13:36AM +0100, BALATON Zoltan wrote: On Sat, 9 Jan 2021, Roman Bolshakov wrote: On Fri, Jan 08, 2021 at 03:00:07PM +, Peter Maydell wrote: On Fri, 8 Jan 2021 at 13:50, Peter Maydell wrote: On Sat, 2 Jan 2021 at 15:14

Re: [PATCH v2] ui/cocoa: Fix openFile: deprecation on Big Sur

2021-01-09 Thread Roman Bolshakov
On Sat, Jan 09, 2021 at 01:25:44PM +0100, Christian Schoenebeck via wrote: > On Samstag, 9. Januar 2021 00:13:36 CET BALATON Zoltan wrote: > > On Sat, 9 Jan 2021, Roman Bolshakov wrote: > > > On Fri, Jan 08, 2021 at 03:00:07PM +, Peter Maydell wrote: > > >> On Fri, 8 Jan 2021 at 13:50, Peter Ma

Re: [PATCH v2] ui/cocoa: Fix openFile: deprecation on Big Sur

2021-01-09 Thread Roman Bolshakov
On Sat, Jan 09, 2021 at 12:13:36AM +0100, BALATON Zoltan wrote: > On Sat, 9 Jan 2021, Roman Bolshakov wrote: > > On Fri, Jan 08, 2021 at 03:00:07PM +, Peter Maydell wrote: > > > On Fri, 8 Jan 2021 at 13:50, Peter Maydell > > > wrote: > > > > > > > > On Sat, 2 Jan 2021 at 15:14, Roman Bolshak

Re: [PATCH v2] ui/cocoa: Fix openFile: deprecation on Big Sur

2021-01-09 Thread Christian Schoenebeck via
On Samstag, 9. Januar 2021 00:13:36 CET BALATON Zoltan wrote: > On Sat, 9 Jan 2021, Roman Bolshakov wrote: > > On Fri, Jan 08, 2021 at 03:00:07PM +, Peter Maydell wrote: > >> On Fri, 8 Jan 2021 at 13:50, Peter Maydell wrote: > >>> On Sat, 2 Jan 2021 at 15:14, Roman Bolshakov wrote: > u

Re: [PATCH v2] ui/cocoa: Fix openFile: deprecation on Big Sur

2021-01-08 Thread BALATON Zoltan
On Sat, 9 Jan 2021, Roman Bolshakov wrote: On Fri, Jan 08, 2021 at 03:00:07PM +, Peter Maydell wrote: On Fri, 8 Jan 2021 at 13:50, Peter Maydell wrote: On Sat, 2 Jan 2021 at 15:14, Roman Bolshakov wrote: ui/cocoa.m:1188:44: warning: 'openFile:' is deprecated: first deprecated in macOS

Re: [PATCH v2] ui/cocoa: Fix openFile: deprecation on Big Sur

2021-01-08 Thread Peter Maydell
On Fri, 8 Jan 2021 at 21:47, Roman Bolshakov wrote: > > On Fri, Jan 08, 2021 at 03:05:55PM +, Peter Maydell wrote: > > This menu bar breakage appears to be caused by this patch. I have > > no idea why, because the patch looks pretty harmless. Nonetheless, > > I'm going to have to drop it from

Re: [PATCH v2] ui/cocoa: Fix openFile: deprecation on Big Sur

2021-01-08 Thread Roman Bolshakov
On Fri, Jan 08, 2021 at 03:05:55PM +, Peter Maydell wrote: > On Fri, 8 Jan 2021 at 15:00, Peter Maydell wrote: > > > > On Fri, 8 Jan 2021 at 13:50, Peter Maydell wrote: > > > > > > On Sat, 2 Jan 2021 at 15:14, Roman Bolshakov > > > wrote: > > > > > > > > ui/cocoa.m:1188:44: warning: 'openFi

Re: [PATCH v2] ui/cocoa: Fix openFile: deprecation on Big Sur

2021-01-08 Thread Roman Bolshakov
On Fri, Jan 08, 2021 at 03:00:07PM +, Peter Maydell wrote: > On Fri, 8 Jan 2021 at 13:50, Peter Maydell wrote: > > > > On Sat, 2 Jan 2021 at 15:14, Roman Bolshakov wrote: > > > > > > ui/cocoa.m:1188:44: warning: 'openFile:' is deprecated: first deprecated > > > in macOS 11.0 - Use -[NSWorksp

Re: [PATCH v2] ui/cocoa: Fix openFile: deprecation on Big Sur

2021-01-08 Thread Peter Maydell
On Fri, 8 Jan 2021 at 15:00, Peter Maydell wrote: > > On Fri, 8 Jan 2021 at 13:50, Peter Maydell wrote: > > > > On Sat, 2 Jan 2021 at 15:14, Roman Bolshakov wrote: > > > > > > ui/cocoa.m:1188:44: warning: 'openFile:' is deprecated: first deprecated > > > in macOS 11.0 - Use -[NSWorkspace openUR

Re: [PATCH v2] ui/cocoa: Fix openFile: deprecation on Big Sur

2021-01-08 Thread Peter Maydell
On Fri, 8 Jan 2021 at 13:50, Peter Maydell wrote: > > On Sat, 2 Jan 2021 at 15:14, Roman Bolshakov wrote: > > > > ui/cocoa.m:1188:44: warning: 'openFile:' is deprecated: first deprecated in > > macOS 11.0 - Use -[NSWorkspace openURL:] instead. > > [-Wdeprecated-declarations] > > if

Re: [PATCH v2] ui/cocoa: Fix openFile: deprecation on Big Sur

2021-01-08 Thread Peter Maydell
On Sat, 2 Jan 2021 at 15:14, Roman Bolshakov wrote: > > ui/cocoa.m:1188:44: warning: 'openFile:' is deprecated: first deprecated in > macOS 11.0 - Use -[NSWorkspace openURL:] instead. > [-Wdeprecated-declarations] > if ([[NSWorkspace sharedWorkspace] openFile: full_file_path] == YES

[PATCH v2] ui/cocoa: Fix openFile: deprecation on Big Sur

2021-01-02 Thread Roman Bolshakov
ui/cocoa.m:1188:44: warning: 'openFile:' is deprecated: first deprecated in macOS 11.0 - Use -[NSWorkspace openURL:] instead. [-Wdeprecated-declarations] if ([[NSWorkspace sharedWorkspace] openFile: full_file_path] == YES) { ^ /Library/Devel