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 have filed a Radar on your bug. :)
rdar://4396965 [Finder] Cannot display pictures in RTFD text clippings


Open TextEdit. Inside TextEdit, create or open a document that contains a picture. (I found that this is pretty easy to do by dragging a picture from Safari into TextEdit.)

Drag the picture from the TextEdit document onto the desktop. You will now have an "Untitled clipping.textClipping" file. Double-click it and you will see an empty window--no text, no pictures. However, the text clipping does in fact contain a picture--if you drag it back into TextEdit (or another app like Stickies), it works as expected. The Finder is just not correctly rendering the RTFD data.

The Finder needs to fully support RTFD display in its clipping preview pane. Cocoa has excellent support for automatically loading and displaying RTFD; the Finder needs to leverage this.




Philip Dow wrote:

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:
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/jstiles% 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: 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>)
 >Re: Dragging Images Outside an NSTextVIEW (From: John Stiles <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.