Re: Predicate warning from text view
Re: Predicate warning from text view
- Subject: Re: Predicate warning from text view
- From: Martin Wierschin <email@hidden>
- Date: Fri, 24 Oct 2014 16:23:55 -0700
> 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.
~Martin Wierschin
_______________________________________________
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