diff dstep/foundation/NSBundle.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
line wrap: on
line diff
--- a/dstep/foundation/NSBundle.d	Mon Aug 03 15:23:15 2009 +0200
+++ b/dstep/foundation/NSBundle.d	Mon Aug 03 15:31:48 2009 +0200
@@ -39,11 +39,13 @@
 
 	static NSBundle mainBundle ()
 	{
-		return invokeObjcSelfClass!(NSBundle, "mainBundle"return result is this.objcObject ? this : (result !is null ? new NSBundle(result) : null);	}
+		return invokeObjcSelfClass!(NSBundle, "mainBundle");
+	}
 
 	static NSBundle bundleWithPath (NSString path)
 	{
-		return invokeObjcSelfClass!(NSBundle, "bundleWithPath:", NSString)(pathreturn result is this.objcObject ? this : (result !is null ? new NSBundle(result) : null);	}
+		return invokeObjcSelfClass!(NSBundle, "bundleWithPath:", NSString)(path);
+	}
 
 	Object initWithPath (NSString path)
 	{
@@ -63,11 +65,13 @@
 
 	static NSBundle bundleForClass (Class aClass)
 	{
-		return invokeObjcSelfClass!(NSBundle, "bundleForClass:", Class)(aClassreturn result is this.objcObject ? this : (result !is null ? new NSBundle(result) : null);	}
+		return invokeObjcSelfClass!(NSBundle, "bundleForClass:", Class)(aClass);
+	}
 
 	static NSBundle bundleWithIdentifier (NSString identifier)
 	{
-		return invokeObjcSelfClass!(NSBundle, "bundleWithIdentifier:", NSString)(identifierreturn result is this.objcObject ? this : (result !is null ? new NSBundle(result) : null);	}
+		return invokeObjcSelfClass!(NSBundle, "bundleWithIdentifier:", NSString)(identifier);
+	}
 
 	static NSArray allBundles ()
 	{