• 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
Trouble getting drag and drop to work
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Trouble getting drag and drop to work


  • Subject: Trouble getting drag and drop to work
  • From: Tristan Harris <email@hidden>
  • Date: Wed, 5 Dec 2001 18:15:20 -0800

HI all,

I tried implementing drag and drop, but I really don't know what I'm doing. My main controller header subclass is as follows:

@interface MyController : NSObject {
IBOutlet NSImageView* soundWell;
}

MyController is extended from NSObject.... and essentially, I want the user to be able to drag in files to "soundWell" in Interface builder, but I don't know what to do to get it working. I've read all the documentation saying how I should "registerForDraggedTypes" but it simply doesn't work. Can someone please provide a brief code snippet?

Thanks,

-Tristan


  • Follow-Ups:
    • Re: Trouble getting drag and drop to work
      • From: "John C. Randolph" <email@hidden>
    • Re: Trouble getting drag and drop to work
      • From: Angela Brett <email@hidden>
  • Prev by Date: Re: HW Serial Number
  • Next by Date: Re: Trouble getting drag and drop to work
  • Previous by thread: Re: getFocus on NSTextField
  • Next by thread: Re: Trouble getting drag and drop to work
  • Index(es):
    • Date
    • Thread