• 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
Predicate warning from text view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Predicate warning from text view


  • Subject: Predicate warning from text view
  • From: Shane Stanley <email@hidden>
  • Date: Fri, 24 Oct 2014 18:37:42 +1100

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

NSExtensionIsPredicateSafeToExecuteWithObject: NSPredicate 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 == 1

I have Graphics turned off in IB because I don't support attachments. I do override -selectionRangeForProposedRange:granularity:, but not in any way that I can see would produce this sort of thing. The only place I use predicates is my completion code, but nothing to do with UTIs.

This is only happening under Yosemite.

Any suggestions on where I might start looking?

--
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


  • Follow-Ups:
    • Re: Predicate warning from text view
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: Crash with ARC enabled on Xcode 6.1
  • Next by Date: Re: Predicate warning from text view
  • Previous by thread: Frame of views during awakeFromNib or restoration
  • Next by thread: Re: Predicate warning from text view
  • Index(es):
    • Date
    • Thread