On Tue, May 12, 2009 at 10:18 AM, sandeep chaudhary <[email protected]> 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 protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
