Re: NSTableView drag & drop string

2013-11-20 Thread Todd Heberlein
On Nov 20, 2013, at 10:00 AM, Todd Heberlein wrote: > Embarrassingly simple problem, but I can’t figure it out. > > ... > - (void)awakeFromNib > { > [self.jocksTable registerForDraggedTypes: [NSArray arrayWithObjects: > NSPasteboardTypeString, nil]]; > [self.jocksTable setDraggingS

Re: NSTableView drag & drop string

2013-11-20 Thread Seth Willits
On Nov 20, 2013, at 10:00 AM, Todd Heberlein 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 > writeR

NSTableView drag & drop string

2013-11-20 Thread Todd Heberlein
Embarrassingly simple problem, but I can’t figure it out. I have an NSTableView, and when dragging and dropping I want to encode my object as strings so I can drop them right into a text document or an email message. I’m trying a very simple test (I just want the string “foo” to be dropped in a