• 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
Re: How to access the Pasteboard?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 convertData: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.


References: 
 >How to access the Pasteboard? (From: "Frederick C. Lee" <email@hidden>)

  • Prev by Date: Re: Pointy Menu Like in Dock
  • Next by Date: Re: Pointy Menu Like in Dock
  • Previous by thread: How to access the Pasteboard?
  • Next by thread: [ANN] Graphviz 1.12 (v5) for Mac OS X
  • Index(es):
    • Date
    • Thread