mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 03:20:48 +00:00
Retain connection.
This commit is contained in:
parent
60cf308471
commit
eda8259f53
3 changed files with 2 additions and 122 deletions
|
@ -24,7 +24,6 @@
|
|||
|
||||
#import "GSSpeechRecognitionServer.h"
|
||||
#import "GSSpeechRecognitionEngine.h"
|
||||
#import "GSSpeechRecognizer.h"
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
static GSSpeechRecognitionServer *_sharedInstance;
|
||||
|
@ -40,11 +39,12 @@ static GSSpeechRecognitionServer *_sharedInstance;
|
|||
{
|
||||
NSConnection *connection = [NSConnection defaultConnection];
|
||||
[connection setRootObject: _sharedInstance];
|
||||
RETAIN(connection);
|
||||
if (NO == [connection registerName: @"GSSpeechRecognitionServer"])
|
||||
{
|
||||
return;
|
||||
}
|
||||
// [[NSRunLoop currentRunLoop] run];
|
||||
[[NSRunLoop currentRunLoop] run];
|
||||
}
|
||||
|
||||
+ (id)sharedServer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue