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: Andy Lee <email@hidden>
- Date: Wed, 1 Aug 2007 09:16:13 -0400
On Aug 1, 2007, at 8:02 AM, Andy Lee wrote:
On Jul 31, 2007, at 8:20 PM, Ricardo Díaz González 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.
Shouldn't you set the text to *not* be rich text? That would force
it to use a single font.
Looking again at your question -- do you want to allow *other* style
changes besides multiple fonts? If so, I believe you have to make it
rich text and then find some way to disallow font changes.
If you're trying to build a syntax-highlighting view, there are some
open-source examples you could look at -- search the archives.
--Andy
_______________________________________________
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