How to get a DOMRange
How to get a DOMRange
- Subject: How to get a DOMRange
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Tue, 21 Aug 2007 00:05:49 +0200
This looks nice but does not work:
DOMRange *domRange = [ [ DOMRange alloc ] init ];
[ domRange selectNode: someNode ];
[ webView setSelectedDOMRange: domRange affinity:
NSSelectionAffinityUpstream ];
After the first line I get an exception: "+[DOMRange init]: should
never be used".
So: what to use instead? Which manuals to read?
Gerriet.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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