• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Setting the cursor position to particular point
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting the cursor position to particular point


  • Subject: Re: Setting the cursor position to particular point
  • From: Seth Willits <email@hidden>
  • Date: Wed, 20 May 2009 21:50:09 -0700

On May 20, 2009, at 2:37 AM, archana udupa wrote:

Hi list.....
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?

What's a cursor? The mouse cursor? Or do you mean the text insertion point "cursor"?


Moving the mouse cursor is generally a bad idea and I can't imagine that's what you want to do. Moving the insertion point in a text view simply requires calling setSelectedRange:


-- Seth Willits



_______________________________________________

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


References: 
 >Setting the cursor position to particular point (From: archana udupa <email@hidden>)

  • Prev by Date: Re: Menu item with 'title' bound is always enabled. Bug?
  • Next by Date: Re: Only One Reason to ever use Transient Properties in Core Data
  • Previous by thread: Re: Setting the cursor position to particular point
  • Next by thread: NSTextView - Having to call setFrame twice to work?
  • Index(es):
    • Date
    • Thread