The Shape of Everything
A website mostly about Mac stuff, written by August "Gus" Mueller
» Acorn
» Retrobatch
» Mastodon
» Instagram
» Github
» Maybe Pizza?
» Archives
» Feed
» Micro feed
October 13, 2005
(This post is from my old, old, super old site. My views have changed over the years, hopefully my writing has improved, and there is now more than a handful of folks reading my site. Enjoy.)

Thursday, October 13th, 2005

I saw a message by Troy Dawson go by on the Webkitsdk-dev mailing list today, that I thought was a great solution to a problem I've had in the past with webkit, so I thought I'd share.

The problem is, when you use WebKit to display UI stuff you've got the ability to select text and images, and you even get the little i-beam cursor showing up. Sometimes you don't want that. The solution is to do something like this:

body {
    cursor: default;


<body onDragStart="return false" onSelectStart="return false">

What that does is turn off the ibeam for the page, and turns off any ability to drag stuff around.

There is also webView:shouldChangeSelectedDOMRange:toDOMRange:affinity:stillSelecting: if you've got a WebEditingDelegate setup- but I like the previous solution better for some reason.

Original message here. (But Apple's list software has a bug in it where the attributes for the body tag are stripped out. Filed as rdar # 4300033 :)

-- posted 5:25 pm

St. Louis and Chicago

I'll be taking a trip to St. Louis for a week, the 19th-26th of October. And Friday the 21st I'll be making my way up to Chicago for Evening at Adler, where I'll be joining 10 other Mac-minded folks on stage to talk about stuff. Then we'll get drinks. Should be fun. How can it not be fun? The host's name is "Drunken Batman".

Seattle is going to be nicely represented- besides myself, Brent Simmons and Wil Shipley will be attending. And I'm happy I get to meet up with Paul Kafasis and Jon Rentzsch again, and I got an email from Mike Piatek-Jimenez saying he'll be attending as well.

Fun fun.

-- posted 12:19 am