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

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

  • Prev by Date: Re: Non clickable NSToolbarItem label
  • Next by Date: Re: Extracting information from WebView
  • Previous by thread: Re: Accessing CALayer properties
  • Next by thread: Re: Leopard problem: can't pass NSPredicate in a distributed object message
  • Index(es):
    • Date
    • Thread