• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
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)


  • 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


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

  • Prev by Date: Re: NSAppleScript not in the main thread
  • Next by Date: Re: NSWindow, Drag and Drop, Focus Ring
  • Previous by thread: Re: Stop NSTableColumn from being dragged, and from changing position (like iTunes)
  • Next by thread: iTunes user rating
  • Index(es):
    • Date
    • Thread