diff options
author | siqi <me@siqi.fr> | 2013-08-16 16:49:47 +0200 |
---|---|---|
committer | siqi <me@siqi.fr> | 2013-08-16 16:49:47 +0200 |
commit | b44ee0a06b08ddae003d52035b9b8558b6c3ec3c (patch) | |
tree | 215945a4c4504948bedfd973649e6f9eb20beb90 /sd | |
parent | 96c413515bc7175e2d6bd69e0027166f83d8b4c7 (diff) |
fix for OSXnetwork service
Change-Id: I62037134ad919dec0ea036a1660ce28426033a2d
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/remotecontrol/OSXNetworkService.mm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sd/source/ui/remotecontrol/OSXNetworkService.mm b/sd/source/ui/remotecontrol/OSXNetworkService.mm index 892439951e0a..c4d3bc31d1a3 100644 --- a/sd/source/ui/remotecontrol/OSXNetworkService.mm +++ b/sd/source/ui/remotecontrol/OSXNetworkService.mm @@ -17,24 +17,24 @@ - (void) publishImpressRemoteServiceOnLocalNetworkWithName:(NSString *)sName { - netService = [[NSNetService alloc] initWithDomain:@"local" type:@kREG_TYPE name:sName port:1599]; + netService = [[NSNetService alloc] initWithDomain:@"local" type:"_impressremote._tcp" name:sName port:1599]; - if (netService != nil) + if (netService != nil) { [netService setDelegate:self]; [netService scheduleInRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode]; [netService publish]; - } + } } --(void)netService:(NSNetService *)aNetService +-(void)netService:(NSNetService *)aNetService didNotPublish:(NSDictionary *)dict { NSLog(@"Service %p did not publish: %@", aNetService, dict); } - (void)dealloc { [netService stop]; - [netService release]; + [netService release]; [super dealloc]; } |