Re: Best approach for selective spell-checking...

2009-07-20 Thread Daniel Jalkut
Hi Jim - On Jul 20, 2009, at 11:01pm, Jim Correia wrote: It would be nice if NSSpellChecker offered a delegate relationship, something like "willMarkMispelledWordInRange:" ... where I could choose to have it keep quiet instead. or the delegate variant: - (NSInteger)textView:(NSTextView *)t

Re: Best approach for selective spell-checking...

2009-07-20 Thread Jim Correia
On Jul 20, 2009, at 9:48 PM, Daniel Jalkut wrote: I'm trying to figure out how to prevent spell checking in my NSTextView from being applied to certain ranges within the text document. [...] It would be nice if NSSpellChecker offered a delegate relationship, something like "willMarkMispe

Re: Best approach for selective spell-checking...

2009-07-20 Thread Greg Guerin
Daniel Jalkut wrote: For context, the situation I'm in is my application, MarsEdit, allows users to edit HTML source code in a regular NSTextView. In a nutshell, I want to spell-check the users plain-text "content" but avoid triggering spell-check false positives inside the HTML markup. I

Best approach for selective spell-checking...

2009-07-20 Thread Daniel Jalkut
I'm trying to figure out how to prevent spell checking in my NSTextView from being applied to certain ranges within the text document. For context, the situation I'm in is my application, MarsEdit, allows users to edit HTML source code in a regular NSTextView. In a nutshell, I want to