diff dwt/internal/cocoa/NSTextStorage.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/NSTextStorage.d	Sat Aug 09 17:00:02 2008 +0200
+++ b/dwt/internal/cocoa/NSTextStorage.d	Tue Aug 19 17:35:17 2008 +0200
@@ -39,136 +39,136 @@
 
     public void addLayoutManager (NSLayoutManager obj)
     {
-        OS.objc_msgSend(this.id, OS.sel_addLayoutManager_1, obj !is null ? obj.id : null);
+        OS.objc_msgSend(this.id_, OS.sel_addLayoutManager_1, obj !is null ? obj.id_ : null);
     }
 
     public NSArray attributeRuns ()
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_attributeRuns);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_attributeRuns);
         return result !is null ? new NSArray(result) : null;
     }
 
     public NSInteger changeInLength ()
     {
-        return cast(NSInteger) OS.objc_msgSend(this.id, OS.sel_changeInLength);
+        return cast(NSInteger) OS.objc_msgSend(this.id_, OS.sel_changeInLength);
     }
 
     public NSArray characters ()
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_characters);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_characters);
         return result !is null ? new NSArray(result) : null;
     }
 
     public id delegatee ()
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_delegate);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_delegate);
         return result !is null ? new id(result) : null;
     }
 
     public void edited (NSUInteger editedMask, NSRange range, NSInteger delta)
     {
-        OS.objc_msgSend(this.id, OS.sel_edited_1range_1changeInLength_1, editedMask, range, delta);
+        OS.objc_msgSend(this.id_, OS.sel_edited_1range_1changeInLength_1, editedMask, range, delta);
     }
 
     public NSUInteger editedMask ()
     {
-        return cast(NSUInteger) OS.objc_msgSend(this.id, OS.sel_editedMask);
+        return cast(NSUInteger) OS.objc_msgSend(this.id_, OS.sel_editedMask);
     }
 
     public NSRange editedRange ()
     {
         NSRange result;
-        OS.objc_msgSend_stret(result, this.id, OS.sel_editedRange);
+        OS.objc_msgSend_stret(&result, this.id_, OS.sel_editedRange);
         return result;
     }
 
     public void ensureAttributesAreFixedInRange (NSRange range)
     {
-        OS.objc_msgSend(this.id, OS.sel_ensureAttributesAreFixedInRange_1, range);
+        OS.objc_msgSend(this.id_, OS.sel_ensureAttributesAreFixedInRange_1, range);
     }
 
     public bool fixesAttributesLazily ()
     {
-        return OS.objc_msgSend(this.id, OS.sel_fixesAttributesLazily) !is null;
+        return OS.objc_msgSend(this.id_, OS.sel_fixesAttributesLazily) !is null;
     }
 
     public NSFont font ()
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_font);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_font);
         return result !is null ? new NSFont(result) : null;
     }
 
     public NSColor foregroundColor ()
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_foregroundColor);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_foregroundColor);
         return result !is null ? new NSColor(result) : null;
     }
 
     public void invalidateAttributesInRange (NSRange range)
     {
-        OS.objc_msgSend(this.id, OS.sel_invalidateAttributesInRange_1, range);
+        OS.objc_msgSend(this.id_, OS.sel_invalidateAttributesInRange_1, range);
     }
 
     public NSArray layoutManagers ()
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_layoutManagers);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_layoutManagers);
         return result !is null ? new NSArray(result) : null;
     }
 
     public NSArray paragraphs ()
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_paragraphs);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_paragraphs);
         return result !is null ? new NSArray(result) : null;
     }
 
     public void processEditing ()
     {
-        OS.objc_msgSend(this.id, OS.sel_processEditing);
+        OS.objc_msgSend(this.id_, OS.sel_processEditing);
     }
 
     public void removeLayoutManager (NSLayoutManager obj)
     {
-        OS.objc_msgSend(this.id, OS.sel_removeLayoutManager_1, obj !is null ? obj.id : null);
+        OS.objc_msgSend(this.id_, OS.sel_removeLayoutManager_1, obj !is null ? obj.id_ : null);
     }
 
     public void setAttributeRuns (NSArray attributeRuns)
     {
-        OS.objc_msgSend(this.id, OS.sel_setAttributeRuns_1, attributeRuns !is null ? attributeRuns.id : null);
+        OS.objc_msgSend(this.id_, OS.sel_setAttributeRuns_1, attributeRuns !is null ? attributeRuns.id_ : null);
     }
 
     public void setCharacters (NSArray characters)
     {
-        OS.objc_msgSend(this.id, OS.sel_setCharacters_1, characters !is null ? characters.id : null);
+        OS.objc_msgSend(this.id_, OS.sel_setCharacters_1, characters !is null ? characters.id_ : null);
     }
 
     public void setDelegate (id delegatee)
     {
-        OS.objc_msgSend(this.id, OS.sel_setDelegate_1, delegatee !is null ? delegatee.id : null);
+        OS.objc_msgSend(this.id_, OS.sel_setDelegate_1, delegatee !is null ? delegatee.id_ : null);
     }
 
     public void setFont (NSFont font)
     {
-        OS.objc_msgSend(this.id, OS.sel_setFont_1, font !is null ? font.id : null);
+        OS.objc_msgSend(this.id_, OS.sel_setFont_1, font !is null ? font.id_ : null);
     }
 
     public void setForegroundColor (NSColor color)
     {
-        OS.objc_msgSend(this.id, OS.sel_setForegroundColor_1, color !is null ? color.id : null);
+        OS.objc_msgSend(this.id_, OS.sel_setForegroundColor_1, color !is null ? color.id_ : null);
     }
 
     public void setParagraphs (NSArray paragraphs)
     {
-        OS.objc_msgSend(this.id, OS.sel_setParagraphs_1, paragraphs !is null ? paragraphs.id : null);
+        OS.objc_msgSend(this.id_, OS.sel_setParagraphs_1, paragraphs !is null ? paragraphs.id_ : null);
     }
 
     public void setWords (NSArray words)
     {
-        OS.objc_msgSend(this.id, OS.sel_setWords_1, words !is null ? words.id : null);
+        OS.objc_msgSend(this.id_, OS.sel_setWords_1, words !is null ? words.id_ : null);
     }
 
     public NSArray words ()
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_words);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_words);
         return result !is null ? new NSArray(result) : null;
     }