Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Filters and DO



Hey List...

We have a "custompdftops" filter in /usr/libexec/cups/filter and a corresponding "custom.convs" file in /etc/cups to make it run instead of cgpdftops. So far so good - this works like a charm.

However, our filter needs to talk to a background application, so I started implementing that using Distributed Objects. The background app vends a named object, the filter attempts to connect to the named object. Turns out that the following code in the filter always returns nil:
[NSConnection rootProxyForConnectionWithRegisteredName:@"some.registered.name" host:nil];

So to isolate the problem, I tried to run the filter from the command line. Worked fine - it connected without any problems and a valid proxy was returned. I tried from the command line using "sudo -u daemon custompdftops [...]" (filters normally execute as daemon). Worked fine again. I checked the command line environment and edited my filter to set exactly the same environment before trying to obtain the proxy. Still no luck.

My question, then: Is there something about the print system that prevents Distributed Objects from working properly in filters? If the environment is the same, what else could be different? Any suggestions or pointers?

Thanks!
Tobias Peciva
Pharos Systems
_______________________________________________
printing mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/printing
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.