Re: Stop NSTableColumn from being dragged, and from changing position (like iTunes)
Re: Stop NSTableColumn from being dragged, and from changing position (like iTunes)
- Subject: Re: Stop NSTableColumn from being dragged, and from changing position (like iTunes)
- From: "Simon Liu" <email@hidden>
- Date: Sun, 21 May 2006 17:09:31 +0100
Yes, this can be used, but from a user perspective, it they can
visually see the drop target they would expect the drag'n'drop to
succeed. What iTunes does is it prevents a visual drop target for
certain target indexes, and I think this looks better visually and is
more intuitive for the user. It also probably requires hacking
NSTableHeaderView.
On 5/21/06, Conor Dearden <email@hidden> wrote:
Use the delegate of the NSTableView to implement:
- (void)tableViewColumnDidMove:(NSNotification *)aNotification
The notification has an NSOldColumn and NSNewColumn you can use to switch
the columns back and reload the table, it happens so fast it's like the
users drops the column before the title but it doesn't move there. You can
choose to notify the users that is not possible or just simply place it at
the first position it can go in your implementation.
_______________________________________________
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