Re: How to access the Pasteboard?
Re: How to access the Pasteboard?
- Subject: Re: How to access the Pasteboard?
- From: mmalcolm crawford <email@hidden>
- Date: Sun, 4 Apr 2004 16:24:09 -0700
On Apr 4, 2004, at 4:00 PM, Frederick C. Lee wrote:
I've done a cut/paste of the following routine from a working example:
What are you trying to do? The code you've used is for services, not
copy/paste...
1) Where does 'lookupFromPB' come from? I did a global search of the
foundation to find nothing, yet it compiles.
2) How can it get it to fire up?
lookupFromPB:... would be advertised as a service:
See
<
http://developer.apple.com/documentation/Cocoa/Conceptual/SysServices/
index.html#//apple_ref/doc/uid/10000101i>
and e.g.
"Providing a Filter Service":
<
http://developer.apple.com/documentation/Cocoa/Conceptual/
CopyandPaste/Tasks/CreatingFilters.html#//apple_ref/doc/uid/20000867>
"If the serviceProvider object implements the method
convert
Data:userData:error:, the filters Info.plist file may contain
the following service specification:
NSServices = (
{
NSFilter = "convertData";
NSPortName = SimpleService;
NSSendTypes = (NSTypedFilenamesPboardType:gif);
NSReturnTypes = (NSTIFFPboardType);
}
);
"
mmalc
_______________________________________________
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.