[ANN]: DSClickableURLTextField updated
[ANN]: DSClickableURLTextField updated
- Subject: [ANN]: DSClickableURLTextField updated
- From: Michael Nickerson <email@hidden>
- Date: Fri, 25 May 2007 14:35:32 -0400
Hey all, I've updated my DSClickableURLTextField class. Here's
what's new:
Changes by Jens Miltner:
* Fixed a problem with the text storage and the text field's
attributed string value having different lengths, causing range
exceptions.
* Added a delegate method allowing custom handling of URLs.
* Tracks initially clicked URL at -mouseDown: to avoid situations
where dragging would end up in a different URL at -mouseUp:, opening
that URL.
* Fixed to allow string links to work as well as URL links.
Changes by me:
* Overrode -initWithCoder:, -initWithFrame:, and -awakeFromNib to
explicity set the text field to non-editable and non-selectable.
* Added in the ability for the user to be able to copy URLs to the
clipboard (off by default).
* Some code clean up.
DSClickableURLTextField is a NSTextField subclass made for one thing:
allowing links to be clicked on and opened.
You can download it from my developer page: <http://
www.nightproductions.net/developer.htm#DSClickableURLTextField>
I also wrote up a class reference, which you get when you download
the source but is also available online: <http://
www.nightproductions.net/references/
dsclickableurltextfield_reference.html>
(Please do keep any replies to this off list.)
----------------------
Darkshadow
(aka Michael Nickerson)
http://www.nightproductions.net
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden