mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 08:30:58 +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>
|
2006-03-05 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/NSScreen.m: ([-visibleFrame]) fix to work when using
|
* Source/NSScreen.m: ([-visibleFrame]) fix to work when using
|
||||||
|
|
|
@ -161,8 +161,14 @@ NSRegisterServicesProvider(id provider, NSString *name)
|
||||||
DESTROY(listenerConnection);
|
DESTROY(listenerConnection);
|
||||||
}
|
}
|
||||||
|
|
||||||
listenerConnection = [NSConnection newRegisteringAtName: name
|
listenerConnection = [[NSConnection alloc]
|
||||||
withRootObject: [GSListener listener]];
|
initWithReceivePort: [NSPort port] sendPort: nil];
|
||||||
|
[listenerConnection setRootObject: [GSListener listener]];
|
||||||
|
if ([listenerConnection registerName: name] == NO)
|
||||||
|
{
|
||||||
|
DESTROY(listenerConnection);
|
||||||
|
}
|
||||||
|
|
||||||
if (listenerConnection != nil)
|
if (listenerConnection != nil)
|
||||||
{
|
{
|
||||||
RETAIN(listenerConnection);
|
RETAIN(listenerConnection);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue