• 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: John Stiles <email@hidden>
  • Date: Mon, 02 Jan 2006 17:08:38 -0800

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: 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: Philip Dow <email@hidden>
References: 
 >Dragging Images Outside an NSTextField (From: Philip Dow <email@hidden>)
 >Re: Dragging Images Outside an NSTextVIEW (From: Philip Dow <email@hidden>)

  • Prev by Date: Re: iCal parsing using Cocoa/Objc
  • Next by Date: Re: newbie help loading arrays programatically
  • Previous by thread: Re: Dragging Images Outside an NSTextVIEW
  • Next by thread: Re: Dragging Images Outside an NSTextVIEW
  • Index(es):
    • Date
    • Thread