Re: Drag drop - namesOfPromisedFilesDroppedAtDestination has an indexSet = nil
Re: Drag drop - namesOfPromisedFilesDroppedAtDestination has an indexSet = nil
- Subject: Re: Drag drop - namesOfPromisedFilesDroppedAtDestination has an indexSet = nil
- From: "Simon Liu" <email@hidden>
- Date: Thu, 27 Apr 2006 22:15:36 +0100
My custom tableview implements behaviour similar to iTunes, where
clicking on a certain column (e.g. Title) of an already selected row,
lets the user edit that cell. This is handled in my custom
-mouseDown:
If the user drags that cell of the already selected row, iTunes starts
a drag session. So to implement this second behaviour, I added a
modal loop in my -mouseDown: where I can catch NSLeftMouseDragged and
NSLeftMouseUp.
This works fine (the ui behaviour is correct). The only issue is that
the indexSet: is nil when starting the drag manually. Is this a bug
that should be filed on radar?
On 4/27/06, Nick Zitzmann <email@hidden> wrote:
>
> On Apr 27, 2006, at 2:37 PM, Simon Liu wrote:
>
> > Why is the indexSet nil, when I implement mouseDragged: and start a
> > drag manually?
>
> Why are you starting a drag manually? This was necessary back when
> NSTableView did not support file-promise dragging, but as of Tiger it
> just works without subclassing or overriding anything.
>
> Nick Zitzmann
> <http://www.chronosnet.com/>
>
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden