Re: Setting the cursor position to particular point
Re: Setting the cursor position to particular point
- Subject: Re: Setting the cursor position to particular point
- From: Graham Cox <email@hidden>
- Date: Thu, 21 May 2009 14:42:30 +1000
On 20/05/2009, at 7:37 PM, archana udupa wrote:
we have a two files.we have to compare them and display the
difference.Then when we click firstdifference the cursor should point
to that difference....how can i do that?
Have you thought this through? It means that every time you click your
mouse pointer will jump to somewhere else.
Or did you mean the text cursor in NSTextView? If so, you can set that
using -setSelectedRange: (with a range length of 0).
Most file diff software uses a special highlight background or text
decoration to indicate differences.
--Graham
_______________________________________________
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