Re: Predicate warning from text view

2015-07-08 Thread Shane Stanley
On 8 Jul 2015, at 9:49 pm, David Durkee  wrote:
> 
> I am seeing this in my application too, and turning off Markup did eliminate 
> it. I was really glad to see your email about that. Makes me want to see if 
> any other mysterious bugs go away with Markup turned off.
> 
> In my case it is not a subclass of a NSTextView, but a straight instance of 
> one.

FYI, my bug report has been closed as a duplicate since I posted, so I guess 
that's also confirmation of a sort.

-- 
Shane Stanley 



___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Predicate warning from text view

2015-07-08 Thread David Durkee
I am seeing this in my application too, and turning off Markup did eliminate 
it. I was really glad to see your email about that. Makes me want to see if any 
other mysterious bugs go away with Markup turned off.

In my case it is not a subclass of a NSTextView, but a straight instance of one.

David

> On Jul 8, 2015, at 12:23 AM, Shane Stanley  wrote:
> 
> On 25 Oct 2014, at 10:23 am, Martin Wierschin  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  which was marked as a 
>> duplicate of 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 
> 
> 
> ___
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/david%40dwdurkee.com
> 
> This email sent to da...@dwdurkee.com


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Predicate warning from text view

2015-07-07 Thread Shane Stanley
On 25 Oct 2014, at 10:23 am, Martin Wierschin  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  which was marked as a 
> duplicate of 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 


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Predicate warning from text view

2014-10-24 Thread Shane Stanley
On 25 Oct 2014, at 10:23 am, Martin Wierschin  wrote:
> 
> 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")

Interesting. I didn't notice it until I installed the release version. TextEdit 
is one of the apps that triggers it here (I haven't tested apps exhaustively), 
but that message is slightly different.
> 
> In any case, I never observed any actual ill effects in my app whenever the 
> logging was triggered.

In my case I redirect stdErr output to my log window, so it's a bit of a pain. 
Looks like I can just filter it out, though.

-- 
Shane Stanley 



___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Predicate warning from text view

2014-10-24 Thread Martin Wierschin
> 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  which was marked as a duplicate 
of 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Predicate warning from text view

2014-10-24 Thread Shane Stanley
On 25 Oct 2014, at 4:16 am, Kyle Sluder  wrote:
> 
> I haven’t noticed it on my machine. It’s pretty obvious that it’s coming from 
> a new Yosemite extension that has a malformed “this is when I’m relevant” 
> query. What apps do you have installed that provide extensions?

System Preferences shows no third-party extensions. There's Markup under 
Actions, Add to Reading List and Add to iPhoto plus the required ones under 
Share Menu, and Calendar, Reminders, Stocks and Weather under Today.

-- 
Shane Stanley 



___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Predicate warning from text view

2014-10-24 Thread Kyle Sluder
On Oct 24, 2014, at 3:35 AM, Shane Stanley  wrote:
> 
> I need to get out more. It's actually happening in lots of apps, not just 
> mine. Anyone else seeing it?

I haven’t noticed it on my machine. It’s pretty obvious that it’s coming from a 
new Yosemite extension that has a malformed “this is when I’m relevant” query. 
What apps do you have installed that provide extensions?

--Kyle Sluder
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Predicate warning from text view

2014-10-24 Thread Shane Stanley
On 24 Oct 2014, at 6:37 pm, Shane Stanley  wrote:

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

I need to get out more. It's actually happening in lots of apps, not just mine. 
Anyone else seeing it?

-- 
Shane Stanley 



___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Predicate warning from text view

2014-10-24 Thread Shane Stanley
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 



___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com