Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Stop NSTableColumn from being dragged, and from changing position (like iTunes)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stop NSTableColumn from being dragged, and from changing position (like iTunes)



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


References: 
 >Re: Stop NSTableColumn from being dragged, and from changing position (like iTunes) (From: Conor Dearden <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.