Re: Q: Filter Services
Re: Q: Filter Services
- Subject: Re: Q: Filter Services
- From: Marco Scheurer <email@hidden>
- Date: Thu, 13 Jun 2002 23:42:09 +0200
On Thursday, June 13, 2002, at 11:26 pm, Douglas Davidson wrote:
On Thursday, June 13, 2002, at 02:09 PM, Marco Scheurer wrote:
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.
Not everything comes for free in the kit. The subsystems that use
filter services must explicitly make use of the pasteboard filtering
methods, typesFilterableTo: and pasteboardByFiltering.... I believe
currently it's just images and text that do this. You may need to use
them yourself if you want them for your own custom types.
Thanks but I'm still confused, because:
1) The NSDocument doc says:
+ (NSArray *)readableTypes
Returns the types of data the receiver can read natively and any types
filterable to that native type.
so I understand that it should find out what filtering services are
available, but anyway:
2) I also tested [NSPasteboard typesFilterableTo:@"sfx"], and the result
was the same as [NSDocument readableTypes]: ("sfx").
3) NSGetFileTypes([NSArray
arrayWithObject:NSCreateFileContentsPboardType (@"sfx")]) does the same.
It really looks like the filter service is not there. (However, another
filter, built and installed in the same way, but which is translating to
NSStringPboardType is working).
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.