Re: NSTableView and drag and drop

2008-10-13 Thread mmalc crawford
On Oct 11, 2008, at 7:01 AM, Chris Idou wrote: If I've got a regular NSTableView and NSArrayController, where and when do I do what so that it can initiate drags? -> With and Without Bindings, Bookmarks mmalc __

Re: NSTableView and drag and drop

2008-10-13 Thread Corbin Dunn
While I'm not familiar with bindings, I don't think there's a problem with having a datasource as well as the bindings - the usual datasource methods for supplying the table with data can probably be missing or stubs. To clarify -- there isn't a problem with having the datasource setup

Re: NSTableView and drag and drop

2008-10-11 Thread Graham Cox
On 12 Oct 2008, at 3:33 pm, Chris Idou wrote: The thing is, I've done all that and no drags are initiated when I drag on the items. I have this in my tableview delegate: But tableView:writeRowsWithIndexes:toPasteboard: is never even called. It seems to me that the examples have this code

Re: NSTableView and drag and drop

2008-10-11 Thread Chris Idou
uot;test string" forType:NSStringPboardType]; return YES; } --- On Sat, 10/11/08, chaitanya pandit <[EMAIL PROTECTED]> wrote: > From: chaitanya pandit <[EMAIL PROTECTED]> > Subject: Re: NSTableView and drag and drop > To: [EMAIL PROTECTED] > Cc: cocoa-dev@lists.apple.com > D

Re: NSTableView and drag and drop

2008-10-11 Thread chaitanya pandit
initiate drags? --- On Fri, 10/10/08, chaitanya pandit <[EMAIL PROTECTED]> wrote: From: chaitanya pandit <[EMAIL PROTECTED]> Subject: Re: NSTableView and drag and drop To: [EMAIL PROTECTED] Cc: cocoa-dev@lists.apple.com Date: Friday, October 10, 2008, 11:50 PM Have a look at

Re: NSTableView and drag and drop

2008-10-11 Thread Chris Idou
gt; > Subject: Re: NSTableView and drag and drop > To: [EMAIL PROTECTED] > Cc: cocoa-dev@lists.apple.com > Date: Friday, October 10, 2008, 11:50 PM > Have a look at > /Developer/Examples/Appkit/DragaNDropOutlineView > > On 11-Oct-08, at 9:06 AM, Chris Idou wrote: >

Re: NSTableView and drag and drop

2008-10-10 Thread chaitanya pandit
Have a look at /Developer/Examples/Appkit/DragaNDropOutlineView On 11-Oct-08, at 9:06 AM, Chris Idou wrote: I want to be able to drag strings out of a table into another field, but I must be missing something major because drags never get initiated. I've added the delegate, registered drag t

NSTableView and drag and drop

2008-10-10 Thread Chris Idou
I want to be able to drag strings out of a table into another field, but I must be missing something major because drags never get initiated. I've added the delegate, registered drag types and added delegate methods, but clicking and dragging within the table simply selects rows in the table, dr