• 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
Drag with NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Drag with NSTableView


  • Subject: Drag with NSTableView
  • From: Livio Isaia <email@hidden>
  • Date: Mon, 13 Aug 2007 12:17:52 +0200

I have an NSTabelView whose NSTableColumn is bound to the field name of a myDataSourceItem type arranged in an NSArrayController and it works fine.

Now I have to implement dragging with the NSTableView, so I subclassed the NSArrayController as myNSArrayController and set it as the NSTableView's delegate (of course I put in it the methods for NSTableView dragging operations).

Unfortunately nothing happens, I mean the methods for dragging (e.g. (BOOL)tableView:writeRowsWithIndexes:toPasteboard:) are never called.
Practically I followed all the steps I found in Drag and "Drop Programming Topics for Cocoa"->"Using Drag and Drop in Tables" (I also looked at the samples DragNDropOutlineView and WithAndWithoutBindings).


Is it possible that I forgot some crucial binding? Unfortunately I couldn't open (!?) WithBindings's nib file in order to see the actual bindings.
Got any idea?


Many thanks in advance.
Best regards,
livio.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Drag with NSTableView
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Re: n00b question about includes
  • Next by Date: Tidy up before saving
  • Previous by thread: Re: Drag with NSTableview
  • Next by thread: Re: Drag with NSTableView
  • Index(es):
    • Date
    • Thread