comparison dstep/foundation/NSDistributedNotificationCenter.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
41 { 41 {
42 mixin ObjcWrap; 42 mixin ObjcWrap;
43 43
44 static NSDistributedNotificationCenter notificationCenterForType (NSString notificationCenterType) 44 static NSDistributedNotificationCenter notificationCenterForType (NSString notificationCenterType)
45 { 45 {
46 return invokeObjcSelfClass!(NSDistributedNotificationCenter, "notificationCenterForType:", NSString)(notificationCenterTypereturn result is this.objcObject ? this : (result !is null ? new NSDistributedNotificationCenter(result) : null); } 46 return invokeObjcSelfClass!(NSDistributedNotificationCenter, "notificationCenterForType:", NSString)(notificationCenterType);
47 }
47 48
48 static Object defaultCenter () 49 static Object defaultCenter ()
49 { 50 {
50 return invokeObjcSelfClass!(Object, "defaultCenter"); 51 return invokeObjcSelfClass!(Object, "defaultCenter");
51 } 52 }