avoid use of deprecated method.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22617 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2006-03-08 11:11:20 +00:00
parent c2d4e58fb5
commit 8b1400484b
2 changed files with 12 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2006-03-08 Richard Frith-Macdonald <rfm@gnu.org>
* Source/GSServicesManager.m: avoid use of deprecated method.
2006-03-05 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSScreen.m: ([-visibleFrame]) fix to work when using

View file

@ -161,8 +161,14 @@ NSRegisterServicesProvider(id provider, NSString *name)
DESTROY(listenerConnection);
}
listenerConnection = [NSConnection newRegisteringAtName: name
withRootObject: [GSListener listener]];
listenerConnection = [[NSConnection alloc]
initWithReceivePort: [NSPort port] sendPort: nil];
[listenerConnection setRootObject: [GSListener listener]];
if ([listenerConnection registerName: name] == NO)
{
DESTROY(listenerConnection);
}
if (listenerConnection != nil)
{
RETAIN(listenerConnection);