Talk:Filter: Difference between revisions

(how i made it worked (by the result point of view))
Line 42:
 
but maybe there's a way (a syntax) where I can extend NSNumber with a modulo:(int)num, which is more useful... (I've tried; then @"modulo: 2 == 0", @"(modulo: 2) == 0", @"modulo(2) == 0" all rise an error) --[[User:ShinTakezou|ShinTakezou]] 18:31, 22 February 2009 (UTC)
 
: Is anyone able to test the Objective-C code on a "real" Cocoa Mac OS X framework? I believe it won't work. I have not found any reason why it should work reading into the Apple doc, like [http://developer.apple.com/DOCUMENTATION/Cocoa/Conceptual/Predicates/Articles/pBNF.html here] and related. The modulus:by: selector is understood by NSExpression, but nothing in NSPredicate let me think that selector is "passed" to a NSExpression object... --[[User:ShinTakezou|ShinTakezou]] 23:01, 17 March 2009 (UTC)