Register our socket port specifically with the socket port name server, not the default port name server, which (as of Mac OS X 10.6.1) is a Mach bootstrap server.
authorPeter Hosey <hg@boredzo.org>
Sat Oct 03 19:06:31 2009 -0700 (2009-10-03)
changeset 44848b8d2ecd6c25
parent 4483 f715dc19b715
child 4486 fd7ab20f1ec3
child 4488 8b26f543636c
Register our socket port specifically with the socket port name server, not the default port name server, which (as of Mac OS X 10.6.1) is a Mach bootstrap server.
Core/Source/GrowlTCPPathway.m
     1.1 --- a/Core/Source/GrowlTCPPathway.m	Sat Oct 03 19:05:35 2009 -0700
     1.2 +++ b/Core/Source/GrowlTCPPathway.m	Sat Oct 03 19:06:31 2009 -0700
     1.3 @@ -28,8 +28,8 @@
     1.4  			[serverConnection setRootObject:self];
     1.5  			[serverConnection setDelegate:self];
     1.6  
     1.7 -			// register with the default NSPortNameServer on the local host
     1.8 -			if (![serverConnection registerName:@"GrowlServer"])
     1.9 +			// register with the NSSocketPortNameServer on the local host
    1.10 +			if (![serverConnection registerName:@"GrowlServer" withNameServer:[NSSocketPortNameServer sharedInstance]])
    1.11  				NSLog(@"WARNING: could not register Growl server.");
    1.12  
    1.13  			// configure and publish the Bonjour service