Ok, don't hesitate to report it.

qnsview_cast is using Obj-C RTTI. An object with a type inheriting QNSView will 
pass isKindOfClass:[QNSView class] test.



Best regards,

     Timur.

________________________________
From: René J.V. Bertin <rjvber...@gmail.com>
Sent: Friday, February 17, 2017 9:32:02 AM
To: Timur Pocheptsov
Cc: development@qt-project.org; Harald Sitter
Subject: Re: [Development] QMacCocoaViewContainer changes?

On Friday February 17 2017 05:39:44 Timur Pocheptsov wrote:

Hello Timur,

I was planning to, but after I gather some more observations, to get an idea if 
indeed the foreign NSView gets released before calling the 
QMacCocoaViewContainer dtor, and where. I also want to try to get some 
certainty that we're not talking simply talking about a regression in Qt 
Designer.

What is definitely new in 5.8 is qnsview_cast(), which I think warns a bit too 
enthusiastically about casting something not a QNSView*. It's not related to 
this crash, but shouldn't it at least accept instances of classes that inherit 
QNSView*? A simple cast won't fool the ObjC runtime anyway.

R.

>Hello,
>
>
>could you, please, create a JIRA ticket for this (if not done yet)?
>
>I remember some changes - but it was 5.6, so 5.7.1 would be also broken then 
>...
>
>
>Best regards,
>
>    Timur.

_______________________________________________
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to