mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-21 04:32:03 +00:00
Tidied defaults usage with ports
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22068 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0814e1b8ad
commit
e8a16aaeb8
5 changed files with 34 additions and 40 deletions
|
@ -588,18 +588,19 @@ static NSDistributedNotificationCenter *netCenter = nil;
|
|||
Protocol *p = @protocol(GDNCProtocol);
|
||||
NSConnection *c;
|
||||
|
||||
#ifdef __MINGW32__
|
||||
if (_type == NSLocalNotificationCenterType
|
||||
&& [[NSUserDefaults standardUserDefaults]
|
||||
boolForKey: @"GSMailslot"] == NO)
|
||||
{
|
||||
ASSIGN(_type, GSPublicNotificationCenterType);
|
||||
}
|
||||
#endif
|
||||
|
||||
if (_type == NSLocalNotificationCenterType)
|
||||
{
|
||||
ns = [NSMessagePortNameServer sharedInstance];
|
||||
NSUserDefaults *defs = [NSUserDefaults standardUserDefaults];
|
||||
|
||||
if ([defs objectForKey: @"NSPortIsMessagePort"] != nil
|
||||
&& [defs boolForKey: @"NSPortIsMessagePort"] == NO)
|
||||
{
|
||||
ns = [NSSocketPortNameServer sharedInstance];
|
||||
}
|
||||
else
|
||||
{
|
||||
ns = [NSMessagePortNameServer sharedInstance];
|
||||
}
|
||||
host = @"";
|
||||
service = GDNC_SERVICE;
|
||||
description = @"local host";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue