• 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
colored text in an NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

colored text in an NSTextView


  • Subject: colored text in an NSTextView
  • From: Mark Douma <email@hidden>
  • Date: Sat, 7 Feb 2004 08:11:32 -0500

While the application I'm writing is an AppleScript Studio app, I'm building the .nibs in Interface Builder so I figured I'd ask in this list as well....

In my application I have a help button that when clicked on opens a window that basically contains the information from my ReadMe.rtfd in an NSTextView. What I did was copy the content of the ReadMe in TextEdit and paste it into the NSTextView in Interface Builder.

The ReadMe.rtfd document contains graphics and text in Helvetica and Geneva with different text sizes and styles such as bold, underlined, italic, etc. Some of the text was also a different color than the standard black. Pasting the contents of the ReadMe document into the NSTextView preserved everything of the original document except for the coloring of the text. I can select the text in the NSTextView and change its color again using the Color palette, but as soon as I save the .nib file, the color gets reset to the standard black.

Is there any way to get colored text in an NSTextView like this or will I have to find some other way?

As for why I don't use other Help options, such as Help Viewer, or opening the ReadMe in TextEdit, I don't think they'd really be practical. My application only executes a single command after which it restarts the system--I'd really like to keep the help within my own app.

Thanks in advance...
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: linking in static libraries under xcode?
  • Next by Date: Error when closing a project
  • Previous by thread: Re: Couldn't Save Document. Error
  • Next by thread: Error when closing a project
  • Index(es):
    • Date
    • Thread