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

Re: NSTableView drag drop string

2013-11-20 Thread Seth Willits
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) -

Re: NSTableView drag drop string

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