mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 15:10:38 +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
f692658c91
commit
f7c10f30e4
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…
Add table
Add a link
Reference in a new issue