Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dragging Images Outside an NSTextVIEW



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

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: http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

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: http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Dragging Images Outside an NSTextField (From: Philip Dow <email@hidden>)
 >Re: Dragging Images Outside an NSTextVIEW (From: Philip Dow <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.