• 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: Leopard problem: can't pass NSPredicate in a distributed object message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Leopard problem: can't pass NSPredicate in a distributed object message (From: "Doug Knowles" <email@hidden>)
 >Re: Leopard problem: can't pass NSPredicate in a distributed object message (From: "Doug Knowles" <email@hidden>)

  • Prev by Date: Re: [NSWorkspace/Leopard] Is it a bug or a feature?
  • Next by Date: Re: [Leopard] Debugging GC
  • Previous by thread: Re: Leopard problem: can't pass NSPredicate in a distributed object message
  • Next by thread: Anand is your Yaar! :)
  • Index(es):
    • Date
    • Thread