• 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: NSAttributedString (How to use with NSTextField?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSAttributedString (How to use with NSTextField?)


  • Subject: Re: NSAttributedString (How to use with NSTextField?)
  • From: Ryan Stevens <email@hidden>
  • Date: Sun, 9 Jan 2005 17:59:40 -0800

On Jan 9, 2005, at 5:34 PM, Jeremy French wrote:

The book "Cocoa Programming for Mac OSX" (second edition) shows how to use an attributed string in a text field, so you can style the text. But when I try the example in the book, the style is not rendered.

Using the sample code from the book, I tried the following, which sets a large 36 pt font size:
[snip]

Setup an NSTextView to your liking and use that instead, I don't think NSTextFields will display your attributed strings while you're editing.

_______________________________________________
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


References: 
 >NSAttributedString (How to use with NSTextField?) (From: Jeremy French <email@hidden>)

  • Prev by Date: Re: Bindings and 2 NSTableViews
  • Next by Date: Keep track of subviews
  • Previous by thread: NSAttributedString (How to use with NSTextField?)
  • Next by thread: Keep track of subviews
  • Index(es):
    • Date
    • Thread