• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Predicate warning from text view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Predicate warning from text view
      • From: Shane Stanley <email@hidden>
References: 
 >Predicate warning from text view (From: Shane Stanley <email@hidden>)
 >Re: Predicate warning from text view (From: Shane Stanley <email@hidden>)
 >Re: Predicate warning from text view (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Predicate warning from text view
  • Next by Date: Re: Predicate warning from text view
  • Previous by thread: Re: Predicate warning from text view
  • Next by thread: Re: Predicate warning from text view
  • Index(es):
    • Date
    • Thread