Question

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

Was it helpful?

Solution

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

ClipboardViewer at developer.apple.com

OTHER TIPS

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

for(id object in [[UIPasteboard generalPasteboard] items]) {
    NSLog(@"Object: %@", object);
}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top