[Libreoffice-commits] core.git: sd/source
siqi
me at siqi.fr
Fri Aug 16 07:50:23 PDT 2013
sd/source/ui/remotecontrol/OSXNetworkService.mm | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
New commits:
commit b44ee0a06b08ddae003d52035b9b8558b6c3ec3c
Author: siqi <me at siqi.fr>
Date: Fri Aug 16 16:49:47 2013 +0200
fix for OSXnetwork service
Change-Id: I62037134ad919dec0ea036a1660ce28426033a2d
diff --git a/sd/source/ui/remotecontrol/OSXNetworkService.mm b/sd/source/ui/remotecontrol/OSXNetworkService.mm
index 8924399..c4d3bc3 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];
}
More information about the Libreoffice-commits
mailing list