Hi, I'm implementing a spell/grammar checker using the new 10.6 API with grammar support. My NSSpellServerDelegate implementation causes a crash in our spelling/grammar checking service.
The crash occurs when we return from the delegate method checkString:range:types:options:inSpellDocumentWithTag:orthography:wordCount: It looks like the NSRange object (encapsuled in a NSValue) object deep in the returned array receives an isEqualToString message. The return value from this method is a rather complicated data structure. I looked at the code for WebEditorClient in WebKit to see a correct usage from a client application. I have not seen any examples of a delagate implementation of this. So here are my questions. 1. A client application in need of grammar check uses NSSpellChecker to call checkString:range:types:options:inSpellDocumentWithTag:orthography:wordCount: This methods returns an array (NSArray *) of (NSTextCheckingResult *) items. Question: Is this the same array that is produced in NSSpellServerDelegate's spellServer:checkString:offset:types:options:orthography:wordCount: and if so has it been altered on the way from the delegate to the client application ? 2. In the API documentation for the NSTextCheckingResult the method grammarCheckingResultWithRange:details: states that the details parameter is "An array of details regarding the grammatical errors. This array of strings is suitable for presenting to the user." Question: Is this correct? Should this not be an array of grammar detail dictionaries? Regards, Björn Sveinbjörnsson Mac Developer, Oribi AB Lund, Sweden _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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 arch...@mail-archive.com