• 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: Bolding a range in a mutable string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Bolding a range in a mutable string


  • Subject: RE: Bolding a range in a mutable string
  • From: "Jonathan E. Jackel" <email@hidden>
  • Date: Tue, 23 Jul 2002 19:04:43 -0400

> I am the newbie trying to write a terminal application. I have an
> NSMutableString containing the text. What I want to do is to, and
> this seems
> like it should be simple, change the font, underline, bolding, color of
> individual characters (ranges) in that string.
>


Read up on NSMutableAttributedString (in Foundation) and NSTextStorage (in
AppKit).


> I may have to be working with attributed strings for this. However, my
> system is heavily dependent on the ability to append to the string (when I
> get a new line or new form command) and mutable attributed strings do not
> support appending.


Check again. There's appendAttributedString:

Jonathan
_______________________________________________
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: 
 >Bolding a range in a mutable string (From: Tom Gray <email@hidden>)

  • Prev by Date: Re: Subclassing NS(Mutable)Dictionary
  • Next by Date: How to find icon file path?
  • Previous by thread: Bolding a range in a mutable string
  • Next by thread: Trapping keyboard characters
  • Index(es):
    • Date
    • Thread