diff dwt/internal/cocoa/NSPrinter.d @ 1:8b48be5454ce

The internal cocoa classes compile now
author Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
date Tue, 19 Aug 2008 17:35:17 +0200
parents 380af2bdd8e5
children f565d3a95c0a
line wrap: on
line diff
--- a/dwt/internal/cocoa/NSPrinter.d	Sat Aug 09 17:00:02 2008 +0200
+++ b/dwt/internal/cocoa/NSPrinter.d	Tue Aug 19 17:35:17 2008 +0200
@@ -49,91 +49,91 @@
 
     public bool acceptsBinary ()
     {
-        return OS.objc_msgSend(this.id, OS.sel_acceptsBinary) !is null;
+        return OS.objc_msgSend(this.id_, OS.sel_acceptsBinary) !is null;
     }
 
     public bool booleanForKey (NSString key, NSString table)
     {
-        return OS.objc_msgSend(this.id, OS.sel_booleanForKey_1inTable_1, key !is null ? key.id : null, table !is null ? table.id : null) !is null;
+        return OS.objc_msgSend(this.id_, OS.sel_booleanForKey_1inTable_1, key !is null ? key.id_ : null, table !is null ? table.id_ : null) !is null;
     }
 
     public NSDictionary deviceDescription ()
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_deviceDescription);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_deviceDescription);
         return result !is null ? new NSDictionary(result) : null;
     }
 
     public NSString domain ()
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_domain);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_domain);
         return result !is null ? new NSString(result) : null;
     }
 
     public float floatForKey (NSString key, NSString table)
     {
-        return cast(float) OS.objc_msgSend_fpret(this.id, OS.sel_floatForKey_1inTable_1, key !is null ? key.id : null,
-                table !is null ? table.id : null);
+        return cast(float) OS.objc_msgSend_fpret(this.id_, OS.sel_floatForKey_1inTable_1, key !is null ? key.id_ : null,
+                table !is null ? table.id_ : null);
     }
 
     public NSString host ()
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_host);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_host);
         return result !is null ? new NSString(result) : null;
     }
 
     public NSRect imageRectForPaper (NSString paperName)
     {
         NSRect result;
-        OS.objc_msgSend_stret(result, this.id, OS.sel_imageRectForPaper_1, paperName !is null ? paperName.id : null);
+        OS.objc_msgSend_stret(&result, this.id_, OS.sel_imageRectForPaper_1, paperName !is null ? paperName.id_ : null);
         return result;
     }
 
     public int intForKey (NSString key, NSString table)
     {
-        return cast(int) OS.objc_msgSend(this.id, OS.sel_intForKey_1inTable_1, key !is null ? key.id : null, table !is null ? table.id : null);
+        return cast(int) OS.objc_msgSend(this.id_, OS.sel_intForKey_1inTable_1, key !is null ? key.id_ : null, table !is null ? table.id_ : null);
     }
 
     public bool isColor ()
     {
-        return OS.objc_msgSend(this.id, OS.sel_isColor) !is null;
+        return OS.objc_msgSend(this.id_, OS.sel_isColor) !is null;
     }
 
     public bool isFontAvailable (NSString faceName)
     {
-        return OS.objc_msgSend(this.id, OS.sel_isFontAvailable_1, faceName !is null ? faceName.id : null) !is null;
+        return OS.objc_msgSend(this.id_, OS.sel_isFontAvailable_1, faceName !is null ? faceName.id_ : null) !is null;
     }
 
     public bool isKey (NSString key, NSString table)
     {
-        return OS.objc_msgSend(this.id, OS.sel_isKey_1inTable_1, key !is null ? key.id : null, table !is null ? table.id : null) !is null;
+        return OS.objc_msgSend(this.id_, OS.sel_isKey_1inTable_1, key !is null ? key.id_ : null, table !is null ? table.id_ : null) !is null;
     }
 
     public bool isOutputStackInReverseOrder ()
     {
-        return OS.objc_msgSend(this.id, OS.sel_isOutputStackInReverseOrder) !is null;
+        return OS.objc_msgSend(this.id_, OS.sel_isOutputStackInReverseOrder) !is null;
     }
 
     public NSInteger languageLevel ()
     {
-        return cast(NSInteger) OS.objc_msgSend(this.id, OS.sel_languageLevel);
+        return cast(NSInteger) OS.objc_msgSend(this.id_, OS.sel_languageLevel);
     }
 
     public NSString name ()
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_name);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_name);
         return result !is null ? new NSString(result) : null;
     }
 
     public NSString note ()
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_note);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_note);
         return result !is null ? new NSString(result) : null;
     }
 
     public NSSize pageSizeForPaper (NSString paperName)
     {
         NSSize result;
-        OS.objc_msgSend_stret(result, this.id, OS.sel_pageSizeForPaper_1, paperName !is null ? paperName.id : null);
+        OS.objc_msgSend_stret(&result, this.id_, OS.sel_pageSizeForPaper_1, paperName !is null ? paperName.id_ : null);
         return result;
     }
 
@@ -151,57 +151,57 @@
 
     public static NSPrinter static_printerWithName_ (NSString name)
     {
-        objc.id result = OS.objc_msgSend(OS.class_NSPrinter, OS.sel_printerWithName_1, name !is null ? name.id : null);
+        objc.id result = OS.objc_msgSend(OS.class_NSPrinter, OS.sel_printerWithName_1, name !is null ? name.id_ : null);
         return result !is null ? new NSPrinter(result) : null;
     }
 
     public static NSPrinter static_printerWithName_domain_includeUnavailable_ (NSString name, NSString domain, bool flag)
     {
-        objc.id result = OS.objc_msgSend(OS.class_NSPrinter, OS.sel_printerWithName_1domain_1includeUnavailable_1, name !is null ? name.id : null,
-                domain !is null ? domain.id : null, flag);
+        objc.id result = OS.objc_msgSend(OS.class_NSPrinter, OS.sel_printerWithName_1domain_1includeUnavailable_1, name !is null ? name.id_ : null,
+                domain !is null ? domain.id_ : null, flag);
         return result !is null ? new NSPrinter(result) : null;
     }
 
     public static NSPrinter printerWithType (NSString type)
     {
-        objc.id result = OS.objc_msgSend(OS.class_NSPrinter, OS.sel_printerWithType_1, type !is null ? type.id : null);
+        objc.id result = OS.objc_msgSend(OS.class_NSPrinter, OS.sel_printerWithType_1, type !is null ? type.id_ : null);
         return result !is null ? new NSPrinter(result) : null;
     }
 
     public NSRect rectForKey (NSString key, NSString table)
     {
         NSRect result;
-        OS.objc_msgSend_stret(result, this.id, OS.sel_rectForKey_1inTable_1, key !is null ? key.id : null, table !is null ? table.id : null);
+        OS.objc_msgSend_stret(&result, this.id_, OS.sel_rectForKey_1inTable_1, key !is null ? key.id_ : null, table !is null ? table.id_ : null);
         return result;
     }
 
     public NSSize sizeForKey (NSString key, NSString table)
     {
         NSSize result;
-        OS.objc_msgSend_stret(result, this.id, OS.sel_sizeForKey_1inTable_1, key !is null ? key.id : null, table !is null ? table.id : null);
+        OS.objc_msgSend_stret(&result, this.id_, OS.sel_sizeForKey_1inTable_1, key !is null ? key.id_ : null, table !is null ? table.id_ : null);
         return result;
     }
 
     public NSPrinterTableStatus statusForTable (NSString tableName)
     {
-        return cast(NSPrinterTableStatus) OS.objc_msgSend(this.id, OS.sel_statusForTable_1, tableName !is null ? tableName.id : null);
+        return cast(NSPrinterTableStatus) OS.objc_msgSend(this.id_, OS.sel_statusForTable_1, tableName !is null ? tableName.id_ : null);
     }
 
     public NSString stringForKey (NSString key, NSString table)
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_stringForKey_1inTable_1, key !is null ? key.id : null, table !is null ? table.id : null);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_stringForKey_1inTable_1, key !is null ? key.id_ : null, table !is null ? table.id_ : null);
         return result !is null ? new NSString(result) : null;
     }
 
     public NSArray stringListForKey (NSString key, NSString table)
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_stringListForKey_1inTable_1, key !is null ? key.id : null, table !is null ? table.id : null);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_stringListForKey_1inTable_1, key !is null ? key.id_ : null, table !is null ? table.id_ : null);
         return result !is null ? new NSArray(result) : null;
     }
 
     public NSString type ()
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_type);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_type);
         return result !is null ? new NSString(result) : null;
     }