• 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
Simple NSAttributedString question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Simple NSAttributedString question


  • Subject: Simple NSAttributedString question
  • From: Christopher Corbell <email@hidden>
  • Date: Thu, 24 Jul 2003 09:56:41 -0700

I have a table view that displays text, and would like some items
to be in a different text style (italic).

I'm supposing that the easiest way to do this is to return an
NSAttributedString instead of and NSString from the table source's
tableView:objectValueForTableColumn:row: method.

However I can't see the simplest way to just make an
NSString into an italicized NSAttributedString. I'm supposing
that I'll use -initWithString for the plain-display strings and
-initWithString:attributes: for the italicized string. But what
key-value pair do I use in the attributes dictionary to indicate
that the string should be italic?

Thanks for help,
Christopher
_______________________________________________
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.

  • Follow-Ups:
    • Re: Simple NSAttributedString question
      • From: Andreas Mayer <email@hidden>
    • Re: Simple NSAttributedString question
      • From: Michael Tsai <email@hidden>
  • Prev by Date: Re: Memory Full or not
  • Next by Date: Re: Hard Objc-Runtime question: objc_getClassList lies to me...
  • Previous by thread: Main window, key window, front window... I'm from Carbon, help me!
  • Next by thread: Re: Simple NSAttributedString question
  • Index(es):
    • Date
    • Thread