Re: Predicate warning from text view
Re: Predicate warning from text view
- Subject: Re: Predicate warning from text view
- From: Shane Stanley <email@hidden>
- Date: Wed, 08 Jul 2015 15:23:36 +1000
On 25 Oct 2014, at 10:23 am, Martin Wierschin <email@hidden> wrote:
>> I have a subclass of a text view in my app. When I double-click on other than a word (ie, a space or return), I get entries like these in the Console:
>>
>> _NSExtensionIsSafeExpressionForObjectWithSubquerySubstitutions: Expression considered unsafe: SUBQUERY(extensionItems, $extensionItem, $extensionItem.attachments.@count == 1 AND SUBQUERY($extensionItem.attachments, $attachment, (NOT ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "com.adobe.pdf") AND (NOT ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.image")).@count == 0).@count
>
>
> I observed this log statement during the Yosemite beta period, on a stock system with no additional extensions/apps installed, aside from my own app being tested on OS X 10.10. My app (which also uses an NSTextView subclass) produced that log statement, but TextEdit also produced a very similar log:
>
>> TextEdit[578]: _NSExtensionIsSafeExpressionForObjectWithSubquerySubstitutions: Expression considered unsafe: SUBQUERY($extensionItem.attachments, $attachment, ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.image")
>
>
> I filed it as rdar://17541734 <rdar://17541734> which was marked as a duplicate of rdar://17432480 <rdar://17432480> which is apparently closed now. Perhaps the problem was reintroduced, or this has a different source?
>
> In any case, I never observed any actual ill effects in my app whenever the logging was triggered.
Just coming back to this...
I *think* that the number of these entries seems to have increased since I upgraded to 10.10.4 -- Console can be flooded with dozens at a time. But I've also found that they *stop* if turn off the Markup extension, and start back up when I turn it back on.
Can anyone else who is seeing the problem confirm that turning Markup solves the problem? nd aAny thoughts on how I might get Markup to stop poking in my window, especially as it can't actually do anything there?
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>
_______________________________________________
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