mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
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:
parent
c2d4e58fb5
commit
8b1400484b
2 changed files with 12 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue