Leopard problem: can't pass NSPredicate in a distributed object message
Leopard problem: can't pass NSPredicate in a distributed object message
- Subject: Leopard problem: can't pass NSPredicate in a distributed object message
- From: "Doug Knowles" <email@hidden>
- Date: Sun, 28 Oct 2007 14:23:55 -0400
Hi, all,
I'm updating an application to Leopard, and some existing functionality got
broken:
I use distributed objects to communicate between my main thread and a
background thread that manages Spotlight metadata queries; the method used
to initiate a query is:
- (void)initiateQueryForID:(NSString *)recID
withPredicate:(NSPredicate*)pred andScopes:(
NSArray *)scopes;
This worked fine under Tiger, but the background thread hangs when it tries
to use the NSPredicate value. Inspecting the object from within the called
routine isn't telling me much. It appears to be an NSProxy, which I expect,
but I can't print the description or the className of the object. The
member variable "_remoteClass" of the proxy is nil, which doesn't feel
right...
I've tried changing the protocol and method declarations to:
- (void)initiateQueryForID:(bycopy NSString *)recID withPredicate:(bycopy
NSPredicate *)pred andScopes:(bycopy NSArray *)scopes;
Oddly, I still seem to be receiving a broken proxy object in the called
routine.
Again, these problems are new to Leopard.
TIA,
Doug Knowles
_______________________________________________
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