• 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: Question about HTML and TextView/Field
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about HTML and TextView/Field


  • Subject: Re: Question about HTML and TextView/Field
  • From: Dan Wood <email@hidden>
  • Date: Sun, 07 Jul 2002 16:57:18 -0700

See http://developer.apple.com/techpubs/macosx/Cocoa/Reference/ApplicationKit/
ObjC_classic/Classes/NSAttributedString.html

... You can initialize an attributed string (and thus an NSTextView) with HTML, or RTF, or plain text. If you want to see the HTML "interpreted", just build an attributed string from the HTML. If you want to edit it as plain text, just initialize it as plain text.

BTW, you may want to see Scott Anguish's sample code along these lines at www.stepwise.com.


On Sunday, July 7, 2002, at 02:12 PM, Aidas wrote:

Hello,

I want to make little HTML editor. Is it possible to force TextField or
TextView use HTMl instead of RTF when saving/opening/editing text?

Maybe there is another way?

Thank you.
_______________________________________________
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: 
 >Question about HTML and TextView/Field (From: Aidas <email@hidden>)

  • Prev by Date: Font drawing and line spacing.
  • Next by Date: Click in NSTableView
  • Previous by thread: Question about HTML and TextView/Field
  • Next by thread: Avoiding Cached ImageReps?
  • Index(es):
    • Date
    • Thread