diff dwt/internal/cocoa/NSGlyphInfo.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/NSGlyphInfo.d	Sat Aug 09 17:00:02 2008 +0200
+++ b/dwt/internal/cocoa/NSGlyphInfo.d	Tue Aug 19 17:35:17 2008 +0200
@@ -45,38 +45,38 @@
 
     public NSCharacterCollection characterCollection ()
     {
-        return OS.objc_msgSend(this.id, OS.sel_characterCollection);
+        return cast(NSCharacterCollection) OS.objc_msgSend(this.id_, OS.sel_characterCollection);
     }
 
     public NSUInteger characterIdentifier ()
     {
-        return OS.objc_msgSend(this.id, OS.sel_characterIdentifier);
+        return cast(NSUInteger) OS.objc_msgSend(this.id_, OS.sel_characterIdentifier);
     }
 
     public static NSGlyphInfo glyphInfoWithCharacterIdentifier (NSUInteger cid, NSCharacterCollection characterCollection, NSString theString)
     {
         objc.id result = OS.objc_msgSend(OS.class_NSGlyphInfo, OS.sel_glyphInfoWithCharacterIdentifier_1collection_1baseString_1, cid,
-                characterCollection, theString !is null ? theString.id : null);
+                characterCollection, theString !is null ? theString.id_ : null);
         return result !is null ? new NSGlyphInfo(result) : null;
     }
 
     public static NSGlyphInfo glyphInfoWithGlyph (NSGlyph glyph, NSFont font, NSString theString)
     {
         objc.id result = OS.objc_msgSend(OS.class_NSGlyphInfo, OS.sel_glyphInfoWithGlyph_1forFont_1baseString_1, glyph,
-                font !is null ? font.id : null, theString !is null ? theString.id : null);
+                font !is null ? font.id_ : null, theString !is null ? theString.id_ : null);
         return result !is null ? new NSGlyphInfo(result) : null;
     }
 
     public static NSGlyphInfo glyphInfoWithGlyphName (NSString glyphName, NSFont font, NSString theString)
     {
         objc.id result = OS.objc_msgSend(OS.class_NSGlyphInfo, OS.sel_glyphInfoWithGlyphName_1forFont_1baseString_1,
-                glyphName !is null ? glyphName.id : null, font !is null ? font.id : null, theString !is null ? theString.id : null);
+                glyphName !is null ? glyphName.id_ : null, font !is null ? font.id_ : null, theString !is null ? theString.id_ : null);
         return result !is null ? new NSGlyphInfo(result) : null;
     }
 
     public NSString glyphName ()
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_glyphName);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_glyphName);
         return result !is null ? new NSString(result) : null;
     }