Q: Filter Services
Q: Filter Services
- Subject: Q: Filter Services
- From: Marco Scheurer <email@hidden>
- Date: Thu, 13 Jun 2002 23:09:04 +0200
Hi,
I'm still struggling with filter services, and I'm beginning to wonder
if they work at all to convert files to a "non standard" format (meaning
not one already supported by AppKit), or if they do, if they work for
NSDocument based applications.
What I am trying to achieve is a service that would be specified like
this:
NSServices = (
{
NSFilter = "";
NSInputMechanism = NSUnixStdio;
NSSendTypes = (NSTypedFilenamesPboardType:sfy);
NSReturnTypes = (NSTypedFileContentsPboardType:sfx);
}
)
in order to translate ".sfy" files to a "sfx" data format.
With that Info.plist in a .service bundle, installed at the right place,
it looks like there is no way for an application capable of opening
"sfx" file, to make "sfy" files available in the Open panel.
Sure enough, in this application, [MyDocument readableTypes] returns
only ("sfx"). I also find strange that the
NSCreateFileContentsPboardType (@"sfx") function returns
"NXTypedFileContentsPboardType:sfx", and not
"NSTypedFileContentsPboardType:sfx", but changing NS to NX in the
service Info.plist does not help.
Has anybody been able to filter to something different than Cocoa basic
types (PDF, TIFF, RTF, String, ...)? Am I missing something? Or should
I file a bug report?
Thanks,
Marco Scheurer
Sen:te, Lausanne, Switzerland
http://www.sente.ch
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.