• 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: Dragging Images Outside an NSTextVIEW
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dragging Images Outside an NSTextVIEW


  • Subject: Re: Dragging Images Outside an NSTextVIEW
  • From: Philip Dow <email@hidden>
  • Date: Tue, 3 Jan 2006 10:50:12 +0100

Hi John

I noticed that when dragging only an image from the textview to the finder the finder produces a text clipping. I had been hoping for more intuitive behavior from the textview that would place tiff data on the pasteboard as well when (only) an image was being dragged.

Looks like I need to override some the dragging methods then and check for the presence of a text attachment in the selection before actually writing to the pasteboard.

-Phil

On Jan 3, 2006, at 2:08 AM, John Stiles wrote:

I think it will drag out RTF data with the image embedded in it (as an NSTextAttachment). So the image is there--it's just that not all apps that are expecting pictures will accept it.
It's certainly possible to extract the image back out, if you have control over the drag target.



Philip Dow wrote:

Ah, please excuse me. In all the excitement of the question I wrote nstextfield instead of nstextview. I am talking about a text view. It just seems really strange that the view can handle an image drag in but not a drag out.

-Phil

On Jan 2, 2006, at 4:39 PM, Philip Dow wrote:

Is it really the case that dragging an image outside of an nstextfield only produces a text clipping and not the image itself? Does the text field not automatically place, say, tiff data on the pasteboard? Must it be that I have to override the textfield's dragging methods in my subclass to produce the proper pasteboard data? Could the whole situation be any more melodramatic?!

Seriously though, is there an easier way to get image data onto the drag pasteboard when a user drags that kind of data out of my textfield subclass, or am I going to need to override/ implement a few dragging methods?

-Phil
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40blizzard.com


This email sent to email@hidden



_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Dragging Images Outside an NSTextVIEW
      • From: John Stiles <email@hidden>
References: 
 >Dragging Images Outside an NSTextField (From: Philip Dow <email@hidden>)
 >Re: Dragging Images Outside an NSTextVIEW (From: Philip Dow <email@hidden>)
 >Re: Dragging Images Outside an NSTextVIEW (From: John Stiles <email@hidden>)

  • Prev by Date: Re: MVC Alternatives?
  • Next by Date: Re: NSSound and private embedded frameworks
  • Previous by thread: Re: Dragging Images Outside an NSTextVIEW
  • Next by thread: Re: Dragging Images Outside an NSTextVIEW
  • Index(es):
    • Date
    • Thread