comparison dstep/foundation/NSNetServices.d @ 25:b9de51448c6b

Added an id constructor. Changed the string mixin to a template mixin. Added support for building as a dynamic library
author Jacob Carlborg <doob@me.com>
date Tue, 06 Apr 2010 11:37:27 +0200
parents 19885b43130e
children
comparison
equal deleted inserted replaced
24:ab33fc0c3fc1 25:b9de51448c6b
170 //mixin ObjcBindMethod!(netServiceBrowser, "netServiceBrowser:didRemoveService:moreComing:"); 170 //mixin ObjcBindMethod!(netServiceBrowser, "netServiceBrowser:didRemoveService:moreComing:");
171 `; 171 `;
172 172
173 class NSNetService : NSObject 173 class NSNetService : NSObject
174 { 174 {
175 mixin (ObjcWrap); 175 mixin ObjcWrap;
176
177 this (id object)
178 {
179 super(object);
180 }
176 181
177 this () 182 this ()
178 { 183 {
179 super(typeof(this).alloc.init.objcObject); 184 super(typeof(this).alloc.init.objcObject);
180 } 185 }
326 } 331 }
327 } 332 }
328 333
329 class NSNetServiceBrowser : NSObject 334 class NSNetServiceBrowser : NSObject
330 { 335 {
331 mixin (ObjcWrap); 336 mixin ObjcWrap;
337
338 this (id object)
339 {
340 super(object);
341 }
332 342
333 this () 343 this ()
334 { 344 {
335 super(typeof(this).alloc.init.objcObject); 345 super(typeof(this).alloc.init.objcObject);
336 } 346 }