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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com