diff dwt/internal/cocoa/NSTextTable.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/NSTextTable.d	Sat Aug 09 17:00:02 2008 +0200
+++ b/dwt/internal/cocoa/NSTextTable.d	Tue Aug 19 17:35:17 2008 +0200
@@ -100,64 +100,64 @@
     public NSRect boundsRectForBlock (NSTextTableBlock block, NSRect contentRect, NSRect rect, NSTextContainer textContainer, NSRange charRange)
     {
         NSRect result;
-        OS.objc_msgSend_stret(result, this.id, OS.sel_boundsRectForBlock_1contentRect_1inRect_1textContainer_1characterRange_1,
-                block !is null ? block.id : null, contentRect, rect, textContainer !is null ? textContainer.id : null, charRange);
+        OS.objc_msgSend_stret(&result, this.id_, OS.sel_boundsRectForBlock_1contentRect_1inRect_1textContainer_1characterRange_1,
+                block !is null ? block.id_ : null, contentRect, rect, textContainer !is null ? textContainer.id_ : null, charRange);
         return result;
     }
 
     public bool collapsesBorders ()
     {
-        return OS.objc_msgSend(this.id, OS.sel_collapsesBorders) !is null;
+        return OS.objc_msgSend(this.id_, OS.sel_collapsesBorders) !is null;
     }
 
     public void drawBackgroundForBlock (NSTextTableBlock block, NSRect frameRect, NSView controlView, NSRange charRange,
             NSLayoutManager layoutManager)
     {
-        OS.objc_msgSend(this.id, OS.sel_drawBackgroundForBlock_1withFrame_1inView_1characterRange_1layoutManager_1, block !is null ? block.id : null,
-                frameRect, controlView !is null ? controlView.id : null, charRange, layoutManager !is null ? layoutManager.id : null);
+        OS.objc_msgSend(this.id_, OS.sel_drawBackgroundForBlock_1withFrame_1inView_1characterRange_1layoutManager_1, block !is null ? block.id_ : null,
+                frameRect, controlView !is null ? controlView.id_ : null, charRange, layoutManager !is null ? layoutManager.id_ : null);
     }
 
     public bool hidesEmptyCells ()
     {
-        return OS.objc_msgSend(this.id, OS.sel_hidesEmptyCells) !is null;
+        return OS.objc_msgSend(this.id_, OS.sel_hidesEmptyCells) !is null;
     }
 
     public NSTextTableLayoutAlgorithm layoutAlgorithm ()
     {
-        return cast(NSTextTableLayoutAlgorithm) OS.objc_msgSend(this.id, OS.sel_layoutAlgorithm);
+        return cast(NSTextTableLayoutAlgorithm) OS.objc_msgSend(this.id_, OS.sel_layoutAlgorithm);
     }
 
     public NSUInteger numberOfColumns ()
     {
-        return cast(NSUInteger) OS.objc_msgSend(this.id, OS.sel_numberOfColumns);
+        return cast(NSUInteger) OS.objc_msgSend(this.id_, OS.sel_numberOfColumns);
     }
 
     public NSRect rectForBlock (NSTextTableBlock block, NSPoint startingPoint, NSRect rect, NSTextContainer textContainer, NSRange charRange)
     {
         NSRect result;
-        OS.objc_msgSend_stret(result, this.id, OS.sel_rectForBlock_1layoutAtPoint_1inRect_1textContainer_1characterRange_1,
-                block !is null ? block.id : null, startingPoint, rect, textContainer !is null ? textContainer.id : null, charRange);
+        OS.objc_msgSend_stret(&result, this.id_, OS.sel_rectForBlock_1layoutAtPoint_1inRect_1textContainer_1characterRange_1,
+                block !is null ? block.id_ : null, startingPoint, rect, textContainer !is null ? textContainer.id_ : null, charRange);
         return result;
     }
 
     public void setCollapsesBorders (bool flag)
     {
-        OS.objc_msgSend(this.id, OS.sel_setCollapsesBorders_1, flag);
+        OS.objc_msgSend(this.id_, OS.sel_setCollapsesBorders_1, flag);
     }
 
     public void setHidesEmptyCells (bool flag)
     {
-        OS.objc_msgSend(this.id, OS.sel_setHidesEmptyCells_1, flag);
+        OS.objc_msgSend(this.id_, OS.sel_setHidesEmptyCells_1, flag);
     }
 
     public void setLayoutAlgorithm (NSTextTableLayoutAlgorithm algorithm)
     {
-        OS.objc_msgSend(this.id, OS.sel_setLayoutAlgorithm_1, algorithm);
+        OS.objc_msgSend(this.id_, OS.sel_setLayoutAlgorithm_1, algorithm);
     }
 
     public void setNumberOfColumns (NSUInteger numCols)
     {
-        OS.objc_msgSend(this.id, OS.sel_setNumberOfColumns_1, numCols);
+        OS.objc_msgSend(this.id_, OS.sel_setNumberOfColumns_1, numCols);
     }
 
 }