• 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 and drop custom classes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Drag and drop custom classes


  • Subject: Drag and drop custom classes
  • From: David H <email@hidden>
  • Date: Thu, 11 Jul 2002 20:07:21 +1000

I'm trying to implement the ability to drag and drop objects instantiated from a class I created, but having trouble doing so. The program is a window with two tables, each showing the contents of its own NSMutableArray that contains objects of the custom class. I want to be able to drag and drop between the tables, and the objects will be moved between the two arrays.

I can do this for NSStrings, but having trouble working out how to do it for my custom class. I had a look at setData:forType: but it seems that only deals with NSData objects. Can anyone provide any clues? Thanks.

Dave
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Drag and drop custom classes
      • From: jerome LAURENS <email@hidden>
  • Prev by Date: Re: NSWindow not restoring location
  • Next by Date: Re: NSTextView - changing font size
  • Previous by thread: Re: NSWindow not restoring location
  • Next by thread: Re: Drag and drop custom classes
  • Index(es):
    • Date
    • Thread