Re: how to set font in NSTextView
Re: how to set font in NSTextView
- Subject: Re: how to set font in NSTextView
- From: "I. Savant" <email@hidden>
- Date: Tue, 12 May 2009 10:22:21 -0400
On Tue, May 12, 2009 at 10:18 AM, sandeep chaudhary
<email@hidden> wrote:
> I am using the NSTextView class. i have created the NSTextView control and create a outlet for this. Now i am adding some text on this control programatically. Text is shown on this field at run time. Now i want some word in string to be shown on bold face and some in normal font.(for example if i have set "humpty dumpty" to my NSTextView , then i want "Humpty" to be shown in bold face and "dumpty" to be in normal face. I have serach how to set the bold face for some word in NSTextView, but could not find any solution.
Search harder and read the documentation. The Text System Overview
guide (which you should have found in your search) has a section
titled, "Simple Text Tricks", the second example of which directly
answers your question.
--
I.S.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden