• 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: Cursor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cursor


  • Subject: Re: Cursor
  • From: Dan Wood <email@hidden>
  • Date: Mon, 08 Jul 2002 14:50:01 -0700

You probably mean you want to select the text (even if there's no text to select) between the tags. See methods like "setSelectedRange:" in NSTextView. In your case, the range you pass in would be the starting position past the <b> and the length of the text before the </b> -- which might be zero if there's no text in between them.


On Monday, July 8, 2002, at 04:06 AM, Luca Torella wrote:

I've a problem: my html editor adds tags. For example when the user click
bold it adds the tags <b> and </b>. I'd like set the cursor between the two
tags. How can I do this?

Thanks, Luca
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.



--
Dan Wood
Karelia Software, LLC
email@hidden
http://www.karelia.com/
Watson for Mac OS X: http://www.karelia.com/watson/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Cursor (From: Luca Torella <email@hidden>)

  • Prev by Date: Re: XML encoder/decoder
  • Next by Date: Re: Starting Cocoa development - Developing for Jaguar
  • Previous by thread: Cursor
  • Next by thread: Cursor
  • Index(es):
    • Date
    • Thread