Re: Writing a custom spell service
Re: Writing a custom spell service
- Subject: Re: Writing a custom spell service
- From: Evan Gross <email@hidden>
- Date: Fri, 31 Aug 2001 19:55:25 -0400
On 8/31/01 10:37 AM, "Stefan Kreutter" <email@hidden> wrote:
>
I'm desperately trying to write my own spell service (like
>
/System/Library/Services/AppleSpell.service) but I couldn't get things
>
to work.
>
>
First of all the documentation [1,2] to NSSpellServer seems pretty old
>
and outdated (has it ever been updated since the NEXTSTEP days? The
>
example code uses cstrings and fprintf() and mentions a file named
>
service for 'service availability notice' - no Info.plist)
...
>
>
After installing the the service in /Library/Services or
>
~/Library/Services, logout/login I launch TextEdit and choose
>
Edit->Spelling->Spelling... In the popup my spellchecker is listed but
>
seems not to work at all. I get an alert dialog: "Couldn't contact Spell
>
Checker". Neither the NSLog() statement nor the log file in /tmp gets
>
created so it seems like the executable doesn't get started.
>
...
>
>
My executable is named ObjectFarmSpell and I register a NSSpellServer
>
with this method:
>
>
[aServer registerLanguage:@"German" byVendor:@"ObjectFarm"]
>
>
But as I said it seems like the executable doesn't get launched.
>
>
The Bundle lauyout looks like this:
>
For what it's worth, the same exact thing happens to me. I have to launch my
app (I have an app that creates a spell server as well as doing other
things) to get things to work properly (as others have stated).
I'm going to file a bug. I thought it was something I was doing wrong, glad
to hear it's not just me (well, sort of - hope this can be fixed in time for
10.1).
Evan Gross
Rainmaker Research Inc.
--
+------------------------------------------------------------------------+
| Evan Gross, Rainmaker Research Inc. <
mailto:email@hidden> |
| - Developers of Macintosh and Windows Software - |
| Spell Catcher 8 for Mac OS and Windows from Casady & Greene, Inc. |
| Visit <
http://www.spellcatcher.com> |
| StuffIt Express from Aladdin Systems, Inc. |
| Visit <
http://www.aladdinsys.com> |
| The DiskTools Collection for Mac OS, shareware |
| Visit <
http://members.home.net/rainmakerinc> |