• 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
Dropping into an NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dropping into an NSTextView


  • Subject: Dropping into an NSTextView
  • From: Shayne Packer <email@hidden>
  • Date: Thu, 18 Apr 2002 20:12:58 -0400

How do I get an NSTextView to accept drops?

In Interface Builder, I created an NSTextView (contained in an NSScrollView). I can't figure out how do make it receive drops being dragged onto it. I tried subclassing the NSScrollView, and implemented the standard methods (draggingEntered, concludeDragOperation, drawRect, etc.). I can drag stuff into it, but it only lets me drop when I am in a one-pixel-wide frame around the view. I tried some other stuff, but this is as close as I got.

Any ideas?

thanks, Shayne
_______________________________________________
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.

  • Prev by Date: Re: -[NSView dataWithPDFInsideRect:] leaks
  • Next by Date: Simple Exception Handling
  • Previous by thread: Re: -[NSView dataWithPDFInsideRect:] leaks
  • Next by thread: Simple Exception Handling
  • Index(es):
    • Date
    • Thread