Re: Spell Checking Text Views
Re: Spell Checking Text Views
- Subject: Re: Spell Checking Text Views
- From: Tommy Nordgren <email@hidden>
- Date: Sat, 4 Nov 2006 13:35:30 +0100
On 24 okt 2006, at 21.45, Douglas Davidson wrote:
On Oct 24, 2006, at 12:34 PM, Tommy Nordgren wrote:
How do I set up spell checking of text views (NSTextView or
subclass). The problem is with
spellchecking embedded strings in source code. I need to make sure
the spell checker sees
only embedded strings.
Spellchecking driven from the menu or panel goes through the method
-checkSpelling:, which can be overridden. That method calls
standard NSSpellChecker methods. As-you-type spellchecking is not
so easily overridden in Tiger and before; there will be more
control available in Leopard. You would probably need to drive it
yourself.
Douglas Davidson
I've been checking through the API:s . The easiest way to support
strings in programming languages appears to be
to create a custom NSTextView , that in it's turn creates/uses a
custom NSTextStorage subclass.
Now I have the problem of initializing a custom NSTextView subclass
in interface builder.
Is it possible, or do I have to create my view on the fly, in code?
-------------------------------------
This sig is dedicated to the advancement of Nuclear Power
Tommy Nordgren
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden