Re: Spell service bundled in application (solved)
Re: Spell service bundled in application (solved)
- Subject: Re: Spell service bundled in application (solved)
- From: Jérome Laurens <email@hidden>
- Date: Tue, 5 Jun 2007 12:35:08 +0200
- Resent-date: Tue, 5 Jun 2007 12:36:42 +0200
- Resent-from: Jérome Laurens <email@hidden>
- Resent-message-id: <email@hidden>
- Resent-to: cocoa-dev <email@hidden>
Le 4 juin 07 à 20:23, Douglas Davidson a écrit :
On Jun 2, 2007, at 12:44 AM, Jérome Laurens wrote:
Now I need to ship this spell service inside my own app.
For that, I just merge my app's and my spell service's bundles,
and I merge the info.plist.
When I do that, my app works properly and the spell service seems
properly declared after logout/login
but app's can't connect to my spell server.
Is there something I have missed?
Are you properly registering and running NSSpellServer? What you
describe ought to work, although there are a number of details and
it's difficult to know exactly what might be going wrong.
In fact, the spell server daemon was not running, most certainly
because my app was not in one of the standard locations and the
daemon was not automatically launched.
I forced the server to launch at least once when my app finishes
launching and it works.
However, I can't really recommend running a spelling service inside
of an application--it would mean that the app would have to be
running all the time. A spellchecker is better off as a faceless
background process.
Douglas Davidson
One of my problems is to obtain the list of all the available
languages from the spell server itself.
As already mentionned, this list can be read from the pulldown button
of the spell checker panel.
Unfortunately, this spell checker panel is only initialized sometimes
when NSApp is created.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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