<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Marcel Taeumel <<a href="mailto:marcel.taeumel@hpi.de">marcel.taeumel@hpi.de</a>> schrieb am Mo., 11. Mai 2020, 14:23:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id="m_932746087701615998__MailbirdStyleContent" style="font-size:10pt;font-family:Arial;color:#000000">
                                        
                                        
                                            
                                        
                                        
                                        > <span style="font-family:Arial,Helvetica,sans-serif;font-size:13px">There are cases where the target actually supports multiple formats/types and lets the user choose. Like the paste as plain text vs rich text example.</span><div><span style="font-family:Arial,Helvetica,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:Arial,Helvetica,sans-serif;font-size:13px">I think that I have lazy (or deferred) evaluation in mind. The drag source puts a passenger into the transfer morph and adds some rules on how to convert that passenger into other objects. The drop target then chooses the kind of representation, triggering conversion transparently. Yes, MIME types can serve as a common protocol between source and target.</span></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">That sounds alright.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id="m_932746087701615998__MailbirdStyleContent" style="font-size:10pt;font-family:Arial;color:#000000"><div><span style="font-family:Arial,Helvetica,sans-serif;font-size:13px">Hmm...on second thought ... it does not matter whether this conversion is deferred or not.</span></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Maybe not here, but if there are many formats or complex content, eager conversion could be costly.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id="m_932746087701615998__MailbirdStyleContent" style="font-size:10pt;font-family:Arial;color:#000000"><div><span style="font-family:Arial,Helvetica,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:Arial,Helvetica,sans-serif;font-size:13px">The inspector would store its field behind a special MIME type like "application/inspector-field" as well as "object/generic" (?) and maybe even "text/plain". The last option would free the target from having to decide whether to call #asString or #printString on "object/generic". :-)</span></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Well if Squeak had named interfaces or protocols had names, you could use them. :-)</div></div>