Mac OS - onBeforeClose not called

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Mac OS - onBeforeClose not called

Postby koudis » Mon Sep 25, 2017 12:39 pm

Hello all,

I have a problem with onBeforeClose action in the Mac OS CEF.

I have implemented DoClose, CloseBrowser etc..
* windowShouldClosed is called -> CloseBrowser(false) is called -> NO is returned from windowSholudClose,
* doClose is called. Flag is se to true. DoClose return false.
* windowSholudClose is called -> windowShouldClose return YES.
--> No onBeforeClose callback is executed.

I really do not known, where is the problem. CefApp protocol is implemented correctly.

I will be glad for every help :),
John
koudis
Techie
 
Posts: 21
Joined: Fri Jul 07, 2017 4:30 am

Re: Mac OS - onBeforeClose not called

Postby koudis » Wed Nov 22, 2017 8:36 am

HI,

the problem is you need to destroy view you create. (because weak/strong references problem...).
koudis
Techie
 
Posts: 21
Joined: Fri Jul 07, 2017 4:30 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 42 guests