• 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: NSTextView Drag and Drop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextView Drag and Drop


  • Subject: Re: NSTextView Drag and Drop
  • From: Ross Carter <email@hidden>
  • Date: Sun, 31 Jan 2010 11:46:41 -0500

On Jan 30, 2010, at 9:25 PM, Jon Buys wrote:

> What is the best way to get access to the file that is dropped on an NSTextView.  I don't want to embed the file in the view, but I'd like to copy the file somewhere else and add arbitrary text in its place.  I'm thinking I should be looking at NSTextAttachment, but I'm not sure if I'm barking up the wrong tree here.

If you are subclassing the NSTextView, you could look at NSDraggingDestination Protocol.
_______________________________________________

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

References: 
 >NSTextView Drag and Drop (From: Jon Buys <email@hidden>)

  • Prev by Date: Crash in NSControl's sizeToFit
  • Next by Date: Re: NSXML and invalid UTF8 characters
  • Previous by thread: NSTextView Drag and Drop
  • Next by thread: Crash in NSControl's sizeToFit
  • Index(es):
    • Date
    • Thread