enchant framework for abicocoa

From: R. Payette <premi_at_altern.org>
Date: Sun Oct 17 2004 - 06:51:56 CEST

I have been working on using enchant as the abiword spell checker and
also an enchant plugin for the Macosx spell checking facility.

It's working but I would need a little help from someone with more
experience than me on cocoa

When I quit abiword and enchant gets unloaded, I get a whole lot of
these warning just after the destructor of my applespell plugin is
called :

2004-10-16 19:04:59.318 AbiWord[2078] appleSpell_provider_dispose
2004-10-16 19:04:59.319 AbiWord[2078]
AppleSpellChecker::~AppleSpellChecker
2004-10-16 19:04:59.360 AbiWord[2078] *** _NSAutoreleaseNoPool():
Object 0xf02a860 of class NSCFString autoreleased with no pool in place
- just leaking
2004-10-16 19:04:59.360 AbiWord[2078] *** _NSAutoreleaseNoPool():
Object 0xf08a570 of class NSMachPort autoreleased with no pool in place
- just leaking
2004-10-16 19:04:59.361 AbiWord[2078] *** _NSAutoreleaseNoPool():
Object 0x2a44910 of class NSMachPort autoreleased with no pool in place
- just leaking
2004-10-16 19:04:59.361 AbiWord[2078] *** _NSAutoreleaseNoPool():
Object 0xf08e250 of class NSConnection autoreleased with no pool in
place - just leaking
2004-10-16 19:04:59.362 AbiWord[2078] ***

AppleSpellChecker::AppleSpellChecker()
{
     NSLog(@"AppleSpellChecker::AppleSpellChecker");
     pool = [[NSAutoreleasePool alloc]init];
     m_checker=[[NSSpellChecker alloc]init];
     m_tag=[NSSpellChecker uniqueSpellDocumentTag];
}

AppleSpellChecker::~AppleSpellChecker()
{
     NSLog(@"AppleSpellChecker::~AppleSpellChecker");
     [m_checker closeSpellDocumentWithTag: m_tag];
    [m_checker release];
     [pool release];
}

Is there something I missed ? As far as I know, I properly allocated
and released the AutoreleasePool and everything "cocoa" is happening
within the methods of this object.
Received on Sun Oct 17 06:52:13 2004

This archive was generated by hypermail 2.1.8 : Sun Oct 17 2004 - 06:52:13 CEST