Pregunta

Is there some developer tool or other open source app that allows us to peek the current contents of the (or, rather: any) NSPasteboard instance?

Browsing through the Xcode directories (contents of the /Developer folder before Xcode 4) doesn't turn up anything that looks useful.

We're currently developing the copy and paste feature for our app and some way to conveniently debug what's currently in the pasteboard would be invaluable and would save heaps of development time..

¿Fue útil?

Solución

Apple actually has sample code that gives a great start to a project of this type:

ClipboardViewer at developer.apple.com

Otros consejos

You could always iterate through the pasteboard and log what's there.

for(id object in [[UIPasteboard generalPasteboard] items]) {
    NSLog(@"Object: %@", object);
}
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top