On Nov 20, 2013, at 10:00 AM, Todd Heberlein <todd_heberl...@mac.com> wrote:
> I’m trying a very simple test (I just want the string “foo” to be dropped in > an email message) that I cannot seem to make work. What am I missing? > (setString:forType: is returning YES) > > > - (BOOL)tableView:(NSTableView *)tv > writeRowsWithIndexes:(NSIndexSet *)rowIndexes > toPasteboard:(NSPasteboard *)pboard; > { > [pboard declareTypes: [NSArray arrayWithObject: NSPasteboardTypeString] > owner: self]; > if ([pboard setString: @"foo" forType: NSPasteboardTypeString] == YES) { > NSLog(@"setString worked"); > return YES; > } > return NO; > } You’re putting it in the dragging pasteboard instead of the general pasteboard. -- Seth Willits _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com