Thursday, October 13th, 2005
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:
<style> 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
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