diff dwt/internal/cocoa/NSAttributedString.d @ 60:62202ce0039f

Updated and fixed many modules to 3.514
author Jacob Carlborg <doob@me.com>
date Mon, 22 Dec 2008 15:10:19 +0100
parents d8635bb48c7c
children
line wrap: on
line diff
--- a/dwt/internal/cocoa/NSAttributedString.d	Tue Dec 09 21:52:21 2008 +0100
+++ b/dwt/internal/cocoa/NSAttributedString.d	Mon Dec 22 15:10:19 2008 +0100
@@ -47,7 +47,7 @@
 
 public NSRange doubleClickAtIndex(int /*long*/ location) {
     NSRange result = NSRange();
-    OS.objc_msgSend_stret(result, this.id, OS.sel_doubleClickAtIndex_, location);
+    OS.objc_msgSend_stret(&result, this.id, OS.sel_doubleClickAtIndex_, location);
     return result;
 }
 
@@ -64,13 +64,13 @@
     return result is this.id ? this : (result !is null ? new NSAttributedString(result) : null);
 }
 
-public int /*long*/ nextWordFromIndex(int /*long*/ location, bool isForward) {
-    return OS.objc_msgSend(this.id, OS.sel_nextWordFromIndex_forward_, location, isForward);
+public NSUInteger nextWordFromIndex(NSUInteger location, bool isForward) {
+    return cast(NSUInteger) OS.objc_msgSend(this.id, OS.sel_nextWordFromIndex_forward_, location, isForward);
 }
 
 public NSSize size() {
     NSSize result = NSSize();
-    OS.objc_msgSend_stret(result, this.id, OS.sel_size);
+    OS.objc_msgSend_stret(&result, this.id, OS.sel_size);
     return result;
 }
 
@@ -85,7 +85,7 @@
 }
 
 public NSUInteger length() {
-    return OS.objc_msgSend(this.id, OS.sel_length);
+    return cast(NSUInteger) OS.objc_msgSend(this.id, OS.sel_length);
 }
 
 public NSString string() {