• 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
Questions regarding WebView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Questions regarding WebView


  • Subject: Questions regarding WebView
  • From: Wolfgang Schreurs <email@hidden>
  • Date: Mon, 25 Jul 2005 14:50:17 +0200

First of all I'd like to tell you I'm a beginning Cocoa programmer. I've worked through half of Aaron Hillegass book and I wanted to start programming on my own application.

I want to built an easy to use web editor (for an end user it will look more like a text editor).

What I want to do is select some text and press (e.g.) the Bold button to set the text font to Bold. I figured I would have to get the current selection and put a <B> tag in front of the selection and at the end of the selection, however, if the selection already has bold tags, then they have to be removed.

What is the best way to implement this? Should (1) I use something like selectedRange: to get the current selection, or (2) would it be better to use selectedDOMRange:?

If the second option would be recommended, how would I have to implement this function?

Could anyone also explain me what a 'selectedDOMRange' range is (maybe with some examples)?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Follow-Ups:
    • Re: Questions regarding WebView
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: Re: Running out of memory with Core Data
  • Next by Date: Re: Running out of memory with Core Data
  • Previous by thread: Re: Running out of memory with Core Data
  • Next by thread: Re: Questions regarding WebView
  • Index(es):
    • Date
    • Thread