Re: Leopard problem: can't pass NSPredicate in a distributed object message
Re: Leopard problem: can't pass NSPredicate in a distributed object message
- Subject: Re: Leopard problem: can't pass NSPredicate in a distributed object message
- From: Dave Hayden <email@hidden>
- Date: Mon, 29 Oct 2007 11:07:23 -0700
On Oct 28, 2007, at 7:57 PM, Doug Knowles wrote:
Hi, David,
I tried permutations of your suggestion; when I used "bycopy", I got
an
error message I hadn't seen before:
*NSPredicates and NSExpressions cannot be encoded by non-keyed
archivers*
This prompted me to try manually archiving the NSPredicate with an
NSKeyedArchiver for bycopy, and (of course) unarchiving it on the
other side
of the call, and I'm back in business again. I'd rather not have to
jump
through this hoop, but it's good to get past this blockage.
You can avoid the proxy-fication by casting the arguments to
"uintptr_t" types:
- (void)initiateQueryForID:(uintptr_t)recID withPredicate:
(uintptr_t)pred andScopes:(uintptr_t)scopes;
Note that you're working with the same object in both threads now, so
be careful about all those fun multithreading issues.
-D
_______________________________________________
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