Thursday, September 29, 2005


Windows Retardation


I don’t often vent about Windows here. Anyone who’s read me for more than a minute recognizes that it’s not my main platform. Indeed the only thing I use it for are corporate email (Outlook/Exchange — bleargh) and one or two other work-related apps. I use it seldom enough that I can get away with using it in a VMWare sandbox on my Linux laptop.

There is one “feature” (Windows XP SP2, Outlook 2000, Internet Explorer 6) that drives me up the freaking wall. It’s the completely brain-damaged clipboard handling. Now I know a little bit about how the clipboard works in the Mac OS (classic and OS X). Briefly (and forgive me, Mac coders who know this more precisely than I do here, I’m just making an approximation for the sake of this post), when a user selects copy in an application, the application notifies the OS of the data type of the material copied. It also can optionally inform the OS that it’s capable of providing this data in (n) many other formats, if requested. An application capable of receiving pasted data tells the OS which formats it understands, and the OS brokers between the two so that, for most sane combinations of copied and pasted data, application B gets application A’s clipboard data in a form it can understand. There’s a term for this sort of operation. I’m going to refer to it as “The Right Way To Do it.”

In Windows, though, things don’t seem to work this way. I will confess to knowing absolutely nothing of Windows’ internals (and I’d like to keep it that way, thank you very much), but as a user I’d have to say the behavior I observe multiple times a day is quite broken.

In the most common scenario, I’m browsing a site in IE (yeah, I know, but I’m almost browsing sites inside the corporate firewall) and I need to copy an URL to paste into an email message. I highlight the URL in IE’s location bar, right-click and select “Copy”, then switch back to the compose message window in Outlook, where the “Paste” menu option is dimmed. As in disabled. As in not functional. As in, “no, you may not paste this chunk of text you selected 1.5 seconds ago and paste it into this window where you are, y’know, editing text.” I’ll usually go through this process twice before questioning the ancestry of every individual on the Windows development team and typing the damned URL by hand.

I have observed similar behavior in many Windows apps — an email address copied from my Outlook address book can’t be pasted into a text field into the CRM app we use or IE. I think I know what’s happening — internally, Windows “knows” that the selected text is a URL or an email address, but refuses to offer that “object” as a plain-text string to an application that can handle it, but for the life of me I can’t figure out why that would be the default behavior. Anyone who had done a second of usability testing would realize how broken this behavior is. Can anyone defend this? Linux/Unix clipboard handling (via X11) is pretty basic, but at least you know that when you copy text, you’ve got text you can paste anywhere.


:: Dave Walker 10:32 (EST/EDT) [+]

:: [/tech/computers/os/win32]
:: tags:

:: Comments (5)

Comments:

kent wrote:

Title: Cut N Paste

Date: 9/30/2005 09:16:46

Response:
I haven't observed the behavior you're talking about, but then I generally use firefox, and GMail. Sometimes Outlook Express. The application is supposed to activate the 'Paste' tag in the menu at the point where it pops up the menu, based on whether it can accept the pasted data. I do know that Windows at least tries to do the right thing -- for instance I think you can copy a region out of an Image in Photoshop and then paste it in a Word document. Linux is even squirrelier -- if that's a word. There you have 2 separate cut/paste methods side by side, interacting in confusing ways. You have the 20-year-old X Windows method (highlight text, middle-mouse-button to paste) with a Windows/Macintosh style cut n paste. On top of that there are cut-n-paste thingies that are particular to the window manager.

kent wrote:

Title:

Date: 9/30/2005 09:18:10

Response:
Err, I need to use <p> to get paragraphis in comments I reckon.

d.w. wrote:

Title:

Date: 9/30/2005 20:42:49

Response:
It's entirely possible that this is an Office issue rather than a Windows issue. As I said, I don't aspire to any level of proficiency beyond "dumb user" in Windows, but I know its one of the thing that sends me whimpering back to my Mac whenever possible.

sublimal wrote:

Title:

Date: 10/1/2005 19:12:59

Response:
X11, GTK & QT, sometimes uses different clipboards depending on how you copy the text (auto copy by selection, or initiating the copy command). The end result is often me being annoyed, and having to remember the work around when one clipboard can't be shared to the other application.

Title:

Date: 10/28/2005 16:44:18

Response:
I believes it's an IE issue. I often have to Copy a selection of text several times before it actually works in IE.




Operator, please trace this call and tell me where I am.