Re: Setting "Allows multiple fonts" to NO programmatically
Re: Setting "Allows multiple fonts" to NO programmatically
- Subject: Re: Setting "Allows multiple fonts" to NO programmatically
- From: "I. Savant" <email@hidden>
- Date: Wed, 1 Aug 2007 09:37:21 -0400
On 7/31/07, Ricardo Díaz González <email@hidden> wrote:
>
> Hi, I created an NSTextView programmatically and need to set its "Allows multiple fonts" to NO, but I can't find this method in the documentation. I read that setting the text to rich text "should do the trick" but I don't want to do this. There has to be a way as there is in Interface Builder.
You read incorrectly. Rich Text allows various fonts, colors,
attributes (bold, italic, underline) and other formatting. Lack of
rich text means plain text. You want plain text, so disallow rich
text. This is done via the -setRichText: method.
--
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