comparison dstep/foundation/NSDistributedLock.d @ 15:7ff919f595d5

Added the Foundation framework, again
author Jacob Carlborg <doob@me.com>
date Mon, 03 Aug 2009 15:31:48 +0200
parents 89f3c3ef1fd2
children 19885b43130e
comparison
equal deleted inserted replaced
14:89f3c3ef1fd2 15:7ff919f595d5
15 { 15 {
16 mixin ObjcWrap; 16 mixin ObjcWrap;
17 17
18 static NSDistributedLock lockWithPath (NSString path) 18 static NSDistributedLock lockWithPath (NSString path)
19 { 19 {
20 return invokeObjcSelfClass!(NSDistributedLock, "lockWithPath:", NSString)(pathreturn result is this.objcObject ? this : (result !is null ? new NSDistributedLock(result) : null); } 20 return invokeObjcSelfClass!(NSDistributedLock, "lockWithPath:", NSString)(path);
21 }
21 22
22 Object initWithPath (NSString path) 23 Object initWithPath (NSString path)
23 { 24 {
24 return invokeObjcSelf!(Object, "initWithPath:", NSString)(path); 25 return invokeObjcSelf!(Object, "initWithPath:", NSString)(path);
25 } 26 }