mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 17:12:03 +00:00
Use message ports if the runtime setting is for MacOS-X compatibility.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@19842 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0fe7535f25
commit
0f2fc0845c
3 changed files with 15 additions and 2 deletions
|
@ -1,3 +1,12 @@
|
||||||
|
2004-08-07 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
* Source/NSPort.m (+initialize), Source/NSPortNameServer.m
|
||||||
|
(systemDefaultPortNameServer): We should be using message ports
|
||||||
|
when we are supposed to be MacOS-X compatible anyway, so check the
|
||||||
|
runtime compatibility setting. Maybe we should be thinking about
|
||||||
|
changing away from the OpenStep behavior as default, and put a
|
||||||
|
warning into the next release?
|
||||||
|
|
||||||
2004-08-07 02:26 Alexander Malmberg <alexander@malmberg.org>
|
2004-08-07 02:26 Alexander Malmberg <alexander@malmberg.org>
|
||||||
|
|
||||||
* Source/NSPort.m (+initialize), Source/NSPortNameServer.m
|
* Source/NSPort.m (+initialize), Source/NSPortNameServer.m
|
||||||
|
|
|
@ -34,6 +34,7 @@
|
||||||
#include "Foundation/NSRunLoop.h"
|
#include "Foundation/NSRunLoop.h"
|
||||||
#include "Foundation/NSAutoreleasePool.h"
|
#include "Foundation/NSAutoreleasePool.h"
|
||||||
#include "Foundation/NSUserDefaults.h"
|
#include "Foundation/NSUserDefaults.h"
|
||||||
|
#include "GSPrivate.h"
|
||||||
|
|
||||||
|
|
||||||
@class NSMessagePort;
|
@class NSMessagePort;
|
||||||
|
@ -68,7 +69,8 @@ Class NSPort_concrete_class;
|
||||||
NSPort_abstract_class = self;
|
NSPort_abstract_class = self;
|
||||||
/* Must be kept in sync with [NSPortNameServer
|
/* Must be kept in sync with [NSPortNameServer
|
||||||
+systemDefaultPortNameServer]. */
|
+systemDefaultPortNameServer]. */
|
||||||
if ([[NSUserDefaults standardUserDefaults]
|
if (GSUserDefaultsFlag(GSMacOSXCompatible) == YES
|
||||||
|
|| [[NSUserDefaults standardUserDefaults]
|
||||||
boolForKey: @"NSPortIsMessagePort"])
|
boolForKey: @"NSPortIsMessagePort"])
|
||||||
{
|
{
|
||||||
NSPort_concrete_class = [NSMessagePort class];
|
NSPort_concrete_class = [NSMessagePort class];
|
||||||
|
|
|
@ -30,6 +30,7 @@
|
||||||
#include "Foundation/NSPortNameServer.h"
|
#include "Foundation/NSPortNameServer.h"
|
||||||
#include "Foundation/NSDebug.h"
|
#include "Foundation/NSDebug.h"
|
||||||
#include "Foundation/NSUserDefaults.h"
|
#include "Foundation/NSUserDefaults.h"
|
||||||
|
#include "GSPrivate.h"
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -64,7 +65,8 @@
|
||||||
+ (id) systemDefaultPortNameServer
|
+ (id) systemDefaultPortNameServer
|
||||||
{
|
{
|
||||||
/* Must be kept in sync with [NSPort +initialize]. */
|
/* Must be kept in sync with [NSPort +initialize]. */
|
||||||
if ([[NSUserDefaults standardUserDefaults]
|
if (GSUserDefaultsFlag(GSMacOSXCompatible) == YES
|
||||||
|
|| [[NSUserDefaults standardUserDefaults]
|
||||||
boolForKey: @"NSPortIsMessagePort"])
|
boolForKey: @"NSPortIsMessagePort"])
|
||||||
{
|
{
|
||||||
return [NSMessagePortNameServer sharedInstance];
|
return [NSMessagePortNameServer sharedInstance];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue